gusto_embedded_client 0.2.5

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 (1141) hide show
  1. checksums.yaml +7 -0
  2. data/lib/crystalline/metadata_fields.rb +163 -0
  3. data/lib/crystalline/t.rb +59 -0
  4. data/lib/crystalline/utils.rb +65 -0
  5. data/lib/crystalline.rb +12 -0
  6. data/lib/gusto_embedded/achtransactions.rb +64 -0
  7. data/lib/gusto_embedded/bankaccounts.rb +277 -0
  8. data/lib/gusto_embedded/client.rb +116 -0
  9. data/lib/gusto_embedded/companies.rb +661 -0
  10. data/lib/gusto_embedded/companyattachment.rb +69 -0
  11. data/lib/gusto_embedded/companyattachments.rb +178 -0
  12. data/lib/gusto_embedded/companybenefits.rb +607 -0
  13. data/lib/gusto_embedded/companyforms.rb +222 -0
  14. data/lib/gusto_embedded/contractordocuments.rb +222 -0
  15. data/lib/gusto_embedded/contractorforms.rb +221 -0
  16. data/lib/gusto_embedded/contractorpaymentgroups.rb +336 -0
  17. data/lib/gusto_embedded/contractorpaymentmethod.rb +178 -0
  18. data/lib/gusto_embedded/contractorpaymentmethods.rb +85 -0
  19. data/lib/gusto_embedded/contractorpayments.rb +392 -0
  20. data/lib/gusto_embedded/contractors.rb +537 -0
  21. data/lib/gusto_embedded/departments.rb +402 -0
  22. data/lib/gusto_embedded/earningtypes.rb +243 -0
  23. data/lib/gusto_embedded/employeeaddresses.rb +556 -0
  24. data/lib/gusto_embedded/employeebenefits.rb +401 -0
  25. data/lib/gusto_embedded/employeeemployments.rb +507 -0
  26. data/lib/gusto_embedded/employeeforms.rb +280 -0
  27. data/lib/gusto_embedded/employeepaymentmethod.rb +303 -0
  28. data/lib/gusto_embedded/employeepaymentmethods.rb +71 -0
  29. data/lib/gusto_embedded/employees.rb +658 -0
  30. data/lib/gusto_embedded/employeetaxsetup.rb +251 -0
  31. data/lib/gusto_embedded/events.rb +61 -0
  32. data/lib/gusto_embedded/externalpayrolls.rb +486 -0
  33. data/lib/gusto_embedded/federaltaxdetails.rb +130 -0
  34. data/lib/gusto_embedded/flows.rb +83 -0
  35. data/lib/gusto_embedded/garnishments.rb +281 -0
  36. data/lib/gusto_embedded/generateddocuments.rb +68 -0
  37. data/lib/gusto_embedded/historicalemployees.rb +79 -0
  38. data/lib/gusto_embedded/holidaypaypolicies.rb +424 -0
  39. data/lib/gusto_embedded/i9verification.rb +416 -0
  40. data/lib/gusto_embedded/industryselection.rb +129 -0
  41. data/lib/gusto_embedded/introspection.rb +110 -0
  42. data/lib/gusto_embedded/invoices.rb +72 -0
  43. data/lib/gusto_embedded/jobsandcompensations.rb +540 -0
  44. data/lib/gusto_embedded/locations.rb +294 -0
  45. data/lib/gusto_embedded/models/operations/account_type.rb +18 -0
  46. data/lib/gusto_embedded/models/operations/accrual_method.rb +24 -0
  47. data/lib/gusto_embedded/models/operations/answers.rb +30 -0
  48. data/lib/gusto_embedded/models/operations/authorization_status.rb +26 -0
  49. data/lib/gusto_embedded/models/operations/base.rb +30 -0
  50. data/lib/gusto_embedded/models/operations/benefits.rb +30 -0
  51. data/lib/gusto_embedded/models/operations/category.rb +18 -0
  52. data/lib/gusto_embedded/models/operations/check_date.rb +30 -0
  53. data/lib/gusto_embedded/models/operations/christmas_day.rb +24 -0
  54. data/lib/gusto_embedded/models/operations/columbus_day.rb +24 -0
  55. data/lib/gusto_embedded/models/operations/columns.rb +97 -0
  56. data/lib/gusto_embedded/models/operations/company.rb +33 -0
  57. data/lib/gusto_embedded/models/operations/contractor_payments.rb +39 -0
  58. data/lib/gusto_embedded/models/operations/contractors.rb +24 -0
  59. data/lib/gusto_embedded/models/operations/contribution.rb +35 -0
  60. data/lib/gusto_embedded/models/operations/deduction_reduces_taxable_income.rb +19 -0
  61. data/lib/gusto_embedded/models/operations/delete_companies_company_uuid_holiday_pay_policy_request.rb +27 -0
  62. data/lib/gusto_embedded/models/operations/delete_companies_company_uuid_holiday_pay_policy_response.rb +36 -0
  63. data/lib/gusto_embedded/models/operations/delete_department_request.rb +27 -0
  64. data/lib/gusto_embedded/models/operations/delete_department_response.rb +36 -0
  65. data/lib/gusto_embedded/models/operations/delete_v1_companies_company_id_contractor_payment_contractor_payment_request.rb +30 -0
  66. data/lib/gusto_embedded/models/operations/delete_v1_companies_company_id_contractor_payment_contractor_payment_response.rb +36 -0
  67. data/lib/gusto_embedded/models/operations/delete_v1_companies_company_id_earning_types_earning_type_uuid_request.rb +30 -0
  68. data/lib/gusto_embedded/models/operations/delete_v1_companies_company_id_earning_types_earning_type_uuid_response.rb +30 -0
  69. data/lib/gusto_embedded/models/operations/delete_v1_companies_company_id_payrolls_request.rb +33 -0
  70. data/lib/gusto_embedded/models/operations/delete_v1_companies_company_id_payrolls_response.rb +30 -0
  71. data/lib/gusto_embedded/models/operations/delete_v1_companies_company_uuid_signatories_signatory_uuid_request.rb +30 -0
  72. data/lib/gusto_embedded/models/operations/delete_v1_companies_company_uuid_signatories_signatory_uuid_response.rb +30 -0
  73. data/lib/gusto_embedded/models/operations/delete_v1_company_benefits_company_benefit_id_request.rb +27 -0
  74. data/lib/gusto_embedded/models/operations/delete_v1_company_benefits_company_benefit_id_response.rb +33 -0
  75. data/lib/gusto_embedded/models/operations/delete_v1_company_benefits_company_benefit_id_responsebody.rb +24 -0
  76. data/lib/gusto_embedded/models/operations/delete_v1_compensations_compensation_id_request.rb +27 -0
  77. data/lib/gusto_embedded/models/operations/delete_v1_compensations_compensation_id_response.rb +30 -0
  78. data/lib/gusto_embedded/models/operations/delete_v1_contractor_payment_groups_contractor_payment_group_id_request.rb +27 -0
  79. data/lib/gusto_embedded/models/operations/delete_v1_contractor_payment_groups_contractor_payment_group_id_response.rb +36 -0
  80. data/lib/gusto_embedded/models/operations/delete_v1_contractors_contractor_uuid_request.rb +27 -0
  81. data/lib/gusto_embedded/models/operations/delete_v1_contractors_contractor_uuid_response.rb +30 -0
  82. data/lib/gusto_embedded/models/operations/delete_v1_employee_benefits_employee_benefit_id_request.rb +27 -0
  83. data/lib/gusto_embedded/models/operations/delete_v1_employee_benefits_employee_benefit_id_response.rb +30 -0
  84. data/lib/gusto_embedded/models/operations/delete_v1_employee_request.rb +27 -0
  85. data/lib/gusto_embedded/models/operations/delete_v1_employee_response.rb +36 -0
  86. data/lib/gusto_embedded/models/operations/delete_v1_employees_employee_id_bank_accounts_bank_account_id_request.rb +30 -0
  87. data/lib/gusto_embedded/models/operations/delete_v1_employees_employee_id_bank_accounts_bank_account_id_response.rb +30 -0
  88. data/lib/gusto_embedded/models/operations/delete_v1_employees_employee_id_i9_authorization_documents_document_id_request.rb +30 -0
  89. data/lib/gusto_embedded/models/operations/delete_v1_employees_employee_id_i9_authorization_documents_document_id_response.rb +30 -0
  90. data/lib/gusto_embedded/models/operations/delete_v1_employees_employee_id_rehire_request.rb +27 -0
  91. data/lib/gusto_embedded/models/operations/delete_v1_employees_employee_id_rehire_response.rb +36 -0
  92. data/lib/gusto_embedded/models/operations/delete_v1_employees_employee_id_terminations_request.rb +27 -0
  93. data/lib/gusto_embedded/models/operations/delete_v1_employees_employee_id_terminations_response.rb +36 -0
  94. data/lib/gusto_embedded/models/operations/delete_v1_external_payroll_request.rb +30 -0
  95. data/lib/gusto_embedded/models/operations/delete_v1_external_payroll_response.rb +30 -0
  96. data/lib/gusto_embedded/models/operations/delete_v1_home_addresses_home_address_uuid_request.rb +27 -0
  97. data/lib/gusto_embedded/models/operations/delete_v1_home_addresses_home_address_uuid_response.rb +36 -0
  98. data/lib/gusto_embedded/models/operations/delete_v1_jobs_job_id_request.rb +27 -0
  99. data/lib/gusto_embedded/models/operations/delete_v1_jobs_job_id_response.rb +30 -0
  100. data/lib/gusto_embedded/models/operations/delete_v1_webhook_subscription_uuid_request.rb +27 -0
  101. data/lib/gusto_embedded/models/operations/delete_v1_webhook_subscription_uuid_response.rb +30 -0
  102. data/lib/gusto_embedded/models/operations/delete_v1_webhook_subscription_uuid_security.rb +24 -0
  103. data/lib/gusto_embedded/models/operations/delete_v1_work_addresses_work_address_uuid_request.rb +27 -0
  104. data/lib/gusto_embedded/models/operations/delete_v1_work_addresses_work_address_uuid_response.rb +36 -0
  105. data/lib/gusto_embedded/models/operations/document.rb +27 -0
  106. data/lib/gusto_embedded/models/operations/document_type.rb +24 -0
  107. data/lib/gusto_embedded/models/operations/documents.rb +36 -0
  108. data/lib/gusto_embedded/models/operations/earning_type.rb +18 -0
  109. data/lib/gusto_embedded/models/operations/earnings.rb +33 -0
  110. data/lib/gusto_embedded/models/operations/employee_compensations.rb +45 -0
  111. data/lib/gusto_embedded/models/operations/employee_state_taxes.rb +27 -0
  112. data/lib/gusto_embedded/models/operations/employees.rb +24 -0
  113. data/lib/gusto_embedded/models/operations/employment_status.rb +22 -0
  114. data/lib/gusto_embedded/models/operations/employment_type.rb +21 -0
  115. data/lib/gusto_embedded/models/operations/entity_type.rb +18 -0
  116. data/lib/gusto_embedded/models/operations/errors.rb +24 -0
  117. data/lib/gusto_embedded/models/operations/external_payroll_items.rb +33 -0
  118. data/lib/gusto_embedded/models/operations/federal_holidays.rb +54 -0
  119. data/lib/gusto_embedded/models/operations/fields_.rb +27 -0
  120. data/lib/gusto_embedded/models/operations/file_type.rb +18 -0
  121. data/lib/gusto_embedded/models/operations/filing_form.rb +20 -0
  122. data/lib/gusto_embedded/models/operations/fixed_compensations.rb +30 -0
  123. data/lib/gusto_embedded/models/operations/frequency.rb +20 -0
  124. data/lib/gusto_embedded/models/operations/garnishment_type.rb +23 -0
  125. data/lib/gusto_embedded/models/operations/get_ach_transactions_request.rb +45 -0
  126. data/lib/gusto_embedded/models/operations/get_ach_transactions_response.rb +33 -0
  127. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_contractor_payments_preview_base.rb +30 -0
  128. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_contractor_payments_preview_contractor_payments.rb +45 -0
  129. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_contractor_payments_preview_contractorpayments_responsebody.rb +24 -0
  130. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_contractor_payments_preview_errors.rb +27 -0
  131. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_contractor_payments_preview_request.rb +30 -0
  132. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_contractor_payments_preview_requestbody.rb +24 -0
  133. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_contractor_payments_preview_response.rb +36 -0
  134. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_contractor_payments_preview_responsebody.rb +24 -0
  135. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_holiday_pay_policy_request.rb +27 -0
  136. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_holiday_pay_policy_response.rb +33 -0
  137. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_paid_holidays_request.rb +30 -0
  138. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_paid_holidays_requestbody.rb +24 -0
  139. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_paid_holidays_response.rb +39 -0
  140. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_report_templates_report_type_request.rb +30 -0
  141. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_report_templates_report_type_response.rb +33 -0
  142. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_time_off_policies_request.rb +27 -0
  143. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_time_off_policies_response.rb +33 -0
  144. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_wire_in_request_uuid_request.rb +27 -0
  145. data/lib/gusto_embedded/models/operations/get_companies_company_uuid_wire_in_request_uuid_response.rb +33 -0
  146. data/lib/gusto_embedded/models/operations/get_companies_departments_request.rb +27 -0
  147. data/lib/gusto_embedded/models/operations/get_companies_departments_response.rb +33 -0
  148. data/lib/gusto_embedded/models/operations/get_department_request.rb +27 -0
  149. data/lib/gusto_embedded/models/operations/get_department_response.rb +33 -0
  150. data/lib/gusto_embedded/models/operations/get_employee_ytd_benefit_amounts_from_different_company_request.rb +30 -0
  151. data/lib/gusto_embedded/models/operations/get_employee_ytd_benefit_amounts_from_different_company_response.rb +33 -0
  152. data/lib/gusto_embedded/models/operations/get_events_request.rb +39 -0
  153. data/lib/gusto_embedded/models/operations/get_events_response.rb +33 -0
  154. data/lib/gusto_embedded/models/operations/get_events_security.rb +24 -0
  155. data/lib/gusto_embedded/models/operations/get_invoices_invoice_period_request.rb +36 -0
  156. data/lib/gusto_embedded/models/operations/get_invoices_invoice_period_response.rb +39 -0
  157. data/lib/gusto_embedded/models/operations/get_invoices_invoice_period_security.rb +24 -0
  158. data/lib/gusto_embedded/models/operations/get_notifications_notification_uuid_request.rb +27 -0
  159. data/lib/gusto_embedded/models/operations/get_notifications_notification_uuid_response.rb +39 -0
  160. data/lib/gusto_embedded/models/operations/get_recovery_cases_request.rb +27 -0
  161. data/lib/gusto_embedded/models/operations/get_recovery_cases_response.rb +33 -0
  162. data/lib/gusto_embedded/models/operations/get_reports_report_uuid_request.rb +27 -0
  163. data/lib/gusto_embedded/models/operations/get_reports_report_uuid_response.rb +33 -0
  164. data/lib/gusto_embedded/models/operations/get_time_off_policies_time_off_policy_uuid_request.rb +27 -0
  165. data/lib/gusto_embedded/models/operations/get_time_off_policies_time_off_policy_uuid_response.rb +33 -0
  166. data/lib/gusto_embedded/models/operations/get_v1_benefits_benefit_id_request.rb +27 -0
  167. data/lib/gusto_embedded/models/operations/get_v1_benefits_benefit_id_response.rb +33 -0
  168. data/lib/gusto_embedded/models/operations/get_v1_benefits_benefits_id_requirements_request.rb +27 -0
  169. data/lib/gusto_embedded/models/operations/get_v1_benefits_benefits_id_requirements_response.rb +33 -0
  170. data/lib/gusto_embedded/models/operations/get_v1_benefits_company_benefit_id_summary_request.rb +36 -0
  171. data/lib/gusto_embedded/models/operations/get_v1_benefits_company_benefit_id_summary_response.rb +33 -0
  172. data/lib/gusto_embedded/models/operations/get_v1_benefits_request.rb +24 -0
  173. data/lib/gusto_embedded/models/operations/get_v1_benefits_response.rb +33 -0
  174. data/lib/gusto_embedded/models/operations/get_v1_companies_attachment_request.rb +30 -0
  175. data/lib/gusto_embedded/models/operations/get_v1_companies_attachment_response.rb +33 -0
  176. data/lib/gusto_embedded/models/operations/get_v1_companies_attachment_url_request.rb +30 -0
  177. data/lib/gusto_embedded/models/operations/get_v1_companies_attachment_url_response.rb +33 -0
  178. data/lib/gusto_embedded/models/operations/get_v1_companies_attachment_url_responsebody.rb +24 -0
  179. data/lib/gusto_embedded/models/operations/get_v1_companies_attachments_request.rb +27 -0
  180. data/lib/gusto_embedded/models/operations/get_v1_companies_attachments_response.rb +33 -0
  181. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_admins_request.rb +33 -0
  182. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_admins_response.rb +33 -0
  183. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_bank_accounts_request.rb +27 -0
  184. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_bank_accounts_response.rb +33 -0
  185. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_company_benefits_request.rb +33 -0
  186. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_company_benefits_response.rb +33 -0
  187. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_contractor_payment_contractor_payment_request.rb +30 -0
  188. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_contractor_payment_contractor_payment_response.rb +33 -0
  189. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_contractor_payment_groups_request.rb +39 -0
  190. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_contractor_payment_groups_response.rb +33 -0
  191. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_contractor_payments_request.rb +45 -0
  192. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_contractor_payments_response.rb +33 -0
  193. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_custom_fields_request.rb +33 -0
  194. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_custom_fields_response.rb +33 -0
  195. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_earning_types_request.rb +27 -0
  196. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_earning_types_response.rb +33 -0
  197. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_employees_request.rb +44 -0
  198. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_employees_response.rb +33 -0
  199. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_federal_tax_details_request.rb +27 -0
  200. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_federal_tax_details_response.rb +33 -0
  201. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_locations_request.rb +33 -0
  202. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_locations_response.rb +33 -0
  203. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_pay_periods_request.rb +36 -0
  204. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_pay_periods_response.rb +33 -0
  205. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_pay_schedules_assignments_request.rb +27 -0
  206. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_pay_schedules_assignments_response.rb +33 -0
  207. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_pay_schedules_pay_schedule_id_request.rb +30 -0
  208. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_pay_schedules_pay_schedule_id_response.rb +33 -0
  209. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_pay_schedules_preview_request.rb +42 -0
  210. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_pay_schedules_preview_response.rb +33 -0
  211. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_pay_schedules_preview_responsebody.rb +27 -0
  212. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_pay_schedules_request.rb +33 -0
  213. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_pay_schedules_response.rb +33 -0
  214. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_payroll_reversals_request.rb +33 -0
  215. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_payroll_reversals_response.rb +33 -0
  216. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_payrolls_payroll_id_queryparam_include.rb +20 -0
  217. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_payrolls_payroll_id_request.rb +33 -0
  218. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_payrolls_payroll_id_response.rb +33 -0
  219. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_payrolls_queryparam_include.rb +19 -0
  220. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_payrolls_request.rb +51 -0
  221. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_payrolls_response.rb +33 -0
  222. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_unprocessed_termination_pay_periods_request.rb +27 -0
  223. data/lib/gusto_embedded/models/operations/get_v1_companies_company_id_unprocessed_termination_pay_periods_response.rb +33 -0
  224. data/lib/gusto_embedded/models/operations/get_v1_companies_company_uuid_contractors_request.rb +36 -0
  225. data/lib/gusto_embedded/models/operations/get_v1_companies_company_uuid_contractors_response.rb +33 -0
  226. data/lib/gusto_embedded/models/operations/get_v1_companies_company_uuid_signatories_request.rb +27 -0
  227. data/lib/gusto_embedded/models/operations/get_v1_companies_company_uuid_signatories_response.rb +33 -0
  228. data/lib/gusto_embedded/models/operations/get_v1_companies_company_uuid_tax_requirements_request.rb +27 -0
  229. data/lib/gusto_embedded/models/operations/get_v1_companies_company_uuid_tax_requirements_response.rb +33 -0
  230. data/lib/gusto_embedded/models/operations/get_v1_companies_company_uuid_tax_requirements_responsebody.rb +29 -0
  231. data/lib/gusto_embedded/models/operations/get_v1_companies_company_uuid_tax_requirements_state_request.rb +33 -0
  232. data/lib/gusto_embedded/models/operations/get_v1_companies_company_uuid_tax_requirements_state_response.rb +33 -0
  233. data/lib/gusto_embedded/models/operations/get_v1_companies_payroll_blockers_company_uuid_request.rb +27 -0
  234. data/lib/gusto_embedded/models/operations/get_v1_companies_payroll_blockers_company_uuid_response.rb +33 -0
  235. data/lib/gusto_embedded/models/operations/get_v1_companies_request.rb +27 -0
  236. data/lib/gusto_embedded/models/operations/get_v1_companies_response.rb +33 -0
  237. data/lib/gusto_embedded/models/operations/get_v1_company_benefits_company_benefit_id_employee_benefits_request.rb +33 -0
  238. data/lib/gusto_embedded/models/operations/get_v1_company_benefits_company_benefit_id_employee_benefits_response.rb +33 -0
  239. data/lib/gusto_embedded/models/operations/get_v1_company_benefits_company_benefit_id_request.rb +30 -0
  240. data/lib/gusto_embedded/models/operations/get_v1_company_benefits_company_benefit_id_response.rb +33 -0
  241. data/lib/gusto_embedded/models/operations/get_v1_company_external_payrolls_request.rb +27 -0
  242. data/lib/gusto_embedded/models/operations/get_v1_company_external_payrolls_response.rb +33 -0
  243. data/lib/gusto_embedded/models/operations/get_v1_company_finish_onboarding_request.rb +27 -0
  244. data/lib/gusto_embedded/models/operations/get_v1_company_finish_onboarding_response.rb +39 -0
  245. data/lib/gusto_embedded/models/operations/get_v1_company_form_pdf_request.rb +27 -0
  246. data/lib/gusto_embedded/models/operations/get_v1_company_form_pdf_response.rb +33 -0
  247. data/lib/gusto_embedded/models/operations/get_v1_company_form_request.rb +27 -0
  248. data/lib/gusto_embedded/models/operations/get_v1_company_form_response.rb +33 -0
  249. data/lib/gusto_embedded/models/operations/get_v1_company_forms_request.rb +27 -0
  250. data/lib/gusto_embedded/models/operations/get_v1_company_forms_response.rb +33 -0
  251. data/lib/gusto_embedded/models/operations/get_v1_company_industry_request.rb +27 -0
  252. data/lib/gusto_embedded/models/operations/get_v1_company_industry_response.rb +33 -0
  253. data/lib/gusto_embedded/models/operations/get_v1_company_onboarding_status_request.rb +30 -0
  254. data/lib/gusto_embedded/models/operations/get_v1_company_onboarding_status_response.rb +33 -0
  255. data/lib/gusto_embedded/models/operations/get_v1_company_payment_configs_request.rb +27 -0
  256. data/lib/gusto_embedded/models/operations/get_v1_company_payment_configs_response.rb +33 -0
  257. data/lib/gusto_embedded/models/operations/get_v1_compensations_compensation_id_request.rb +27 -0
  258. data/lib/gusto_embedded/models/operations/get_v1_compensations_compensation_id_response.rb +33 -0
  259. data/lib/gusto_embedded/models/operations/get_v1_contractor_document_pdf_request.rb +27 -0
  260. data/lib/gusto_embedded/models/operations/get_v1_contractor_document_pdf_response.rb +33 -0
  261. data/lib/gusto_embedded/models/operations/get_v1_contractor_document_request.rb +27 -0
  262. data/lib/gusto_embedded/models/operations/get_v1_contractor_document_response.rb +33 -0
  263. data/lib/gusto_embedded/models/operations/get_v1_contractor_documents_request.rb +27 -0
  264. data/lib/gusto_embedded/models/operations/get_v1_contractor_documents_response.rb +33 -0
  265. data/lib/gusto_embedded/models/operations/get_v1_contractor_form_pdf_request.rb +30 -0
  266. data/lib/gusto_embedded/models/operations/get_v1_contractor_form_pdf_response.rb +33 -0
  267. data/lib/gusto_embedded/models/operations/get_v1_contractor_form_request.rb +30 -0
  268. data/lib/gusto_embedded/models/operations/get_v1_contractor_form_response.rb +33 -0
  269. data/lib/gusto_embedded/models/operations/get_v1_contractor_forms_request.rb +27 -0
  270. data/lib/gusto_embedded/models/operations/get_v1_contractor_forms_response.rb +33 -0
  271. data/lib/gusto_embedded/models/operations/get_v1_contractor_payment_groups_contractor_payment_group_id_request.rb +27 -0
  272. data/lib/gusto_embedded/models/operations/get_v1_contractor_payment_groups_contractor_payment_group_id_response.rb +33 -0
  273. data/lib/gusto_embedded/models/operations/get_v1_contractor_payments_contractor_payment_uuid_fund_request.rb +27 -0
  274. data/lib/gusto_embedded/models/operations/get_v1_contractor_payments_contractor_payment_uuid_fund_response.rb +39 -0
  275. data/lib/gusto_embedded/models/operations/get_v1_contractor_payments_contractor_payment_uuid_receipt_request.rb +27 -0
  276. data/lib/gusto_embedded/models/operations/get_v1_contractor_payments_contractor_payment_uuid_receipt_response.rb +33 -0
  277. data/lib/gusto_embedded/models/operations/get_v1_contractors_contractor_uuid_address_request.rb +27 -0
  278. data/lib/gusto_embedded/models/operations/get_v1_contractors_contractor_uuid_address_response.rb +33 -0
  279. data/lib/gusto_embedded/models/operations/get_v1_contractors_contractor_uuid_bank_accounts_request.rb +27 -0
  280. data/lib/gusto_embedded/models/operations/get_v1_contractors_contractor_uuid_bank_accounts_response.rb +33 -0
  281. data/lib/gusto_embedded/models/operations/get_v1_contractors_contractor_uuid_onboarding_status_request.rb +27 -0
  282. data/lib/gusto_embedded/models/operations/get_v1_contractors_contractor_uuid_onboarding_status_response.rb +33 -0
  283. data/lib/gusto_embedded/models/operations/get_v1_contractors_contractor_uuid_payment_method_request.rb +27 -0
  284. data/lib/gusto_embedded/models/operations/get_v1_contractors_contractor_uuid_payment_method_response.rb +33 -0
  285. data/lib/gusto_embedded/models/operations/get_v1_contractors_contractor_uuid_request.rb +27 -0
  286. data/lib/gusto_embedded/models/operations/get_v1_contractors_contractor_uuid_response.rb +33 -0
  287. data/lib/gusto_embedded/models/operations/get_v1_employee_benefits_employee_benefit_id_request.rb +27 -0
  288. data/lib/gusto_embedded/models/operations/get_v1_employee_benefits_employee_benefit_id_response.rb +33 -0
  289. data/lib/gusto_embedded/models/operations/get_v1_employee_form_pdf_request.rb +30 -0
  290. data/lib/gusto_embedded/models/operations/get_v1_employee_form_pdf_response.rb +33 -0
  291. data/lib/gusto_embedded/models/operations/get_v1_employee_form_request.rb +30 -0
  292. data/lib/gusto_embedded/models/operations/get_v1_employee_form_response.rb +33 -0
  293. data/lib/gusto_embedded/models/operations/get_v1_employee_forms_request.rb +27 -0
  294. data/lib/gusto_embedded/models/operations/get_v1_employee_forms_response.rb +33 -0
  295. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_bank_accounts_request.rb +33 -0
  296. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_bank_accounts_response.rb +33 -0
  297. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_custom_fields_request.rb +33 -0
  298. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_custom_fields_response.rb +33 -0
  299. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_custom_fields_responsebody.rb +24 -0
  300. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_employee_benefits_request.rb +33 -0
  301. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_employee_benefits_response.rb +33 -0
  302. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_employment_history_request.rb +27 -0
  303. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_employment_history_response.rb +33 -0
  304. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_federal_taxes_request.rb +27 -0
  305. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_federal_taxes_response.rb +33 -0
  306. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_garnishments_request.rb +33 -0
  307. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_garnishments_response.rb +33 -0
  308. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_home_addresses_request.rb +27 -0
  309. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_home_addresses_response.rb +33 -0
  310. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_i9_authorization_document_options_request.rb +27 -0
  311. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_i9_authorization_document_options_response.rb +33 -0
  312. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_i9_authorization_documents_request.rb +27 -0
  313. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_i9_authorization_documents_response.rb +33 -0
  314. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_i9_authorization_request.rb +27 -0
  315. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_i9_authorization_response.rb +33 -0
  316. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_jobs_queryparam_include.rb +18 -0
  317. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_jobs_request.rb +37 -0
  318. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_jobs_response.rb +33 -0
  319. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_onboarding_status_request.rb +27 -0
  320. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_onboarding_status_response.rb +33 -0
  321. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_payment_method_request.rb +27 -0
  322. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_payment_method_response.rb +33 -0
  323. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_rehire_request.rb +27 -0
  324. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_rehire_response.rb +39 -0
  325. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_state_taxes_request.rb +27 -0
  326. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_state_taxes_response.rb +33 -0
  327. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_terminations_request.rb +27 -0
  328. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_terminations_response.rb +33 -0
  329. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_work_addresses_request.rb +27 -0
  330. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_id_work_addresses_response.rb +33 -0
  331. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_uuid_pay_stubs_request.rb +27 -0
  332. data/lib/gusto_embedded/models/operations/get_v1_employees_employee_uuid_pay_stubs_response.rb +33 -0
  333. data/lib/gusto_embedded/models/operations/get_v1_employees_request.rb +32 -0
  334. data/lib/gusto_embedded/models/operations/get_v1_employees_response.rb +33 -0
  335. data/lib/gusto_embedded/models/operations/get_v1_external_payroll_calculate_taxes_request.rb +30 -0
  336. data/lib/gusto_embedded/models/operations/get_v1_external_payroll_calculate_taxes_response.rb +33 -0
  337. data/lib/gusto_embedded/models/operations/get_v1_external_payroll_request.rb +30 -0
  338. data/lib/gusto_embedded/models/operations/get_v1_external_payroll_response.rb +33 -0
  339. data/lib/gusto_embedded/models/operations/get_v1_garnishments_child_support_request.rb +24 -0
  340. data/lib/gusto_embedded/models/operations/get_v1_garnishments_child_support_response.rb +33 -0
  341. data/lib/gusto_embedded/models/operations/get_v1_garnishments_garnishment_id_request.rb +27 -0
  342. data/lib/gusto_embedded/models/operations/get_v1_garnishments_garnishment_id_response.rb +33 -0
  343. data/lib/gusto_embedded/models/operations/get_v1_generated_documents_document_type_request_uuid_request.rb +30 -0
  344. data/lib/gusto_embedded/models/operations/get_v1_generated_documents_document_type_request_uuid_response.rb +33 -0
  345. data/lib/gusto_embedded/models/operations/get_v1_home_addresses_home_address_uuid_request.rb +27 -0
  346. data/lib/gusto_embedded/models/operations/get_v1_home_addresses_home_address_uuid_response.rb +33 -0
  347. data/lib/gusto_embedded/models/operations/get_v1_jobs_job_id_compensations_queryparam_include.rb +18 -0
  348. data/lib/gusto_embedded/models/operations/get_v1_jobs_job_id_compensations_request.rb +37 -0
  349. data/lib/gusto_embedded/models/operations/get_v1_jobs_job_id_compensations_response.rb +33 -0
  350. data/lib/gusto_embedded/models/operations/get_v1_jobs_job_id_queryparam_include.rb +18 -0
  351. data/lib/gusto_embedded/models/operations/get_v1_jobs_job_id_request.rb +31 -0
  352. data/lib/gusto_embedded/models/operations/get_v1_jobs_job_id_response.rb +33 -0
  353. data/lib/gusto_embedded/models/operations/get_v1_locations_location_id_request.rb +27 -0
  354. data/lib/gusto_embedded/models/operations/get_v1_locations_location_id_response.rb +33 -0
  355. data/lib/gusto_embedded/models/operations/get_v1_locations_location_uuid_minimum_wages_request.rb +30 -0
  356. data/lib/gusto_embedded/models/operations/get_v1_locations_location_uuid_minimum_wages_response.rb +33 -0
  357. data/lib/gusto_embedded/models/operations/get_v1_payment_receipts_payrolls_payroll_uuid_request.rb +27 -0
  358. data/lib/gusto_embedded/models/operations/get_v1_payment_receipts_payrolls_payroll_uuid_response.rb +33 -0
  359. data/lib/gusto_embedded/models/operations/get_v1_payrolls_payroll_uuid_employees_employee_uuid_pay_stub_request.rb +30 -0
  360. data/lib/gusto_embedded/models/operations/get_v1_payrolls_payroll_uuid_employees_employee_uuid_pay_stub_response.rb +30 -0
  361. data/lib/gusto_embedded/models/operations/get_v1_tax_liabilities_request.rb +27 -0
  362. data/lib/gusto_embedded/models/operations/get_v1_tax_liabilities_response.rb +33 -0
  363. data/lib/gusto_embedded/models/operations/get_v1_token_info_request.rb +24 -0
  364. data/lib/gusto_embedded/models/operations/get_v1_token_info_response.rb +33 -0
  365. data/lib/gusto_embedded/models/operations/get_v1_token_info_responsebody.rb +30 -0
  366. data/lib/gusto_embedded/models/operations/get_v1_token_info_type.rb +19 -0
  367. data/lib/gusto_embedded/models/operations/get_v1_webhook_subscription_uuid_request.rb +27 -0
  368. data/lib/gusto_embedded/models/operations/get_v1_webhook_subscription_uuid_response.rb +33 -0
  369. data/lib/gusto_embedded/models/operations/get_v1_webhook_subscription_uuid_security.rb +24 -0
  370. data/lib/gusto_embedded/models/operations/get_v1_webhook_subscription_verification_token_uuid_request.rb +27 -0
  371. data/lib/gusto_embedded/models/operations/get_v1_webhook_subscription_verification_token_uuid_response.rb +30 -0
  372. data/lib/gusto_embedded/models/operations/get_v1_webhook_subscription_verification_token_uuid_security.rb +24 -0
  373. data/lib/gusto_embedded/models/operations/get_v1_webhook_subscriptions_request.rb +24 -0
  374. data/lib/gusto_embedded/models/operations/get_v1_webhook_subscriptions_response.rb +33 -0
  375. data/lib/gusto_embedded/models/operations/get_v1_webhook_subscriptions_security.rb +24 -0
  376. data/lib/gusto_embedded/models/operations/get_v1_work_addresses_work_address_uuid_request.rb +27 -0
  377. data/lib/gusto_embedded/models/operations/get_v1_work_addresses_work_address_uuid_response.rb +33 -0
  378. data/lib/gusto_embedded/models/operations/get_version_employees_time_off_activities_request.rb +30 -0
  379. data/lib/gusto_embedded/models/operations/get_version_employees_time_off_activities_response.rb +33 -0
  380. data/lib/gusto_embedded/models/operations/get_wire_in_requests_wire_in_request_uuid_request.rb +27 -0
  381. data/lib/gusto_embedded/models/operations/get_wire_in_requests_wire_in_request_uuid_response.rb +33 -0
  382. data/lib/gusto_embedded/models/operations/groupings.rb +20 -0
  383. data/lib/gusto_embedded/models/operations/home_address.rb +36 -0
  384. data/lib/gusto_embedded/models/operations/hourly_compensations.rb +30 -0
  385. data/lib/gusto_embedded/models/operations/include.rb +18 -0
  386. data/lib/gusto_embedded/models/operations/independence_day.rb +24 -0
  387. data/lib/gusto_embedded/models/operations/job.rb +24 -0
  388. data/lib/gusto_embedded/models/operations/juneteenth.rb +24 -0
  389. data/lib/gusto_embedded/models/operations/labor_day.rb +24 -0
  390. data/lib/gusto_embedded/models/operations/liability_selections.rb +30 -0
  391. data/lib/gusto_embedded/models/operations/limit_option.rb +25 -0
  392. data/lib/gusto_embedded/models/operations/memorial_day.rb +24 -0
  393. data/lib/gusto_embedded/models/operations/migration_status.rb +17 -0
  394. data/lib/gusto_embedded/models/operations/minimum_wages.rb +24 -0
  395. data/lib/gusto_embedded/models/operations/mlk_day.rb +24 -0
  396. data/lib/gusto_embedded/models/operations/new_years_day.rb +24 -0
  397. data/lib/gusto_embedded/models/operations/off_cycle_reason.rb +20 -0
  398. data/lib/gusto_embedded/models/operations/onboarding_status.rb +17 -0
  399. data/lib/gusto_embedded/models/operations/owner_type.rb +17 -0
  400. data/lib/gusto_embedded/models/operations/paid_time_off.rb +33 -0
  401. data/lib/gusto_embedded/models/operations/pay_periods.rb +33 -0
  402. data/lib/gusto_embedded/models/operations/payment_method.rb +18 -0
  403. data/lib/gusto_embedded/models/operations/payment_unit.rb +21 -0
  404. data/lib/gusto_embedded/models/operations/payroll_type.rb +20 -0
  405. data/lib/gusto_embedded/models/operations/payroll_types.rb +19 -0
  406. data/lib/gusto_embedded/models/operations/post_companies_company_uuid_holiday_pay_policy_request.rb +30 -0
  407. data/lib/gusto_embedded/models/operations/post_companies_company_uuid_holiday_pay_policy_requestbody.rb +24 -0
  408. data/lib/gusto_embedded/models/operations/post_companies_company_uuid_holiday_pay_policy_response.rb +39 -0
  409. data/lib/gusto_embedded/models/operations/post_companies_company_uuid_reports_employment_status.rb +23 -0
  410. data/lib/gusto_embedded/models/operations/post_companies_company_uuid_reports_payment_method.rb +18 -0
  411. data/lib/gusto_embedded/models/operations/post_companies_company_uuid_reports_request.rb +30 -0
  412. data/lib/gusto_embedded/models/operations/post_companies_company_uuid_reports_requestbody.rb +66 -0
  413. data/lib/gusto_embedded/models/operations/post_companies_company_uuid_reports_response.rb +39 -0
  414. data/lib/gusto_embedded/models/operations/post_companies_company_uuid_time_off_policies_accrual_method.rb +24 -0
  415. data/lib/gusto_embedded/models/operations/post_companies_company_uuid_time_off_policies_request.rb +30 -0
  416. data/lib/gusto_embedded/models/operations/post_companies_company_uuid_time_off_policies_requestbody.rb +51 -0
  417. data/lib/gusto_embedded/models/operations/post_companies_company_uuid_time_off_policies_response.rb +39 -0
  418. data/lib/gusto_embedded/models/operations/post_companies_payroll_skip_company_uuid_request.rb +30 -0
  419. data/lib/gusto_embedded/models/operations/post_companies_payroll_skip_company_uuid_requestbody.rb +36 -0
  420. data/lib/gusto_embedded/models/operations/post_companies_payroll_skip_company_uuid_response.rb +33 -0
  421. data/lib/gusto_embedded/models/operations/post_departments_request.rb +30 -0
  422. data/lib/gusto_embedded/models/operations/post_departments_requestbody.rb +24 -0
  423. data/lib/gusto_embedded/models/operations/post_departments_response.rb +39 -0
  424. data/lib/gusto_embedded/models/operations/post_employee_ytd_benefit_amounts_from_different_company_request.rb +30 -0
  425. data/lib/gusto_embedded/models/operations/post_employee_ytd_benefit_amounts_from_different_company_response.rb +36 -0
  426. data/lib/gusto_embedded/models/operations/post_partner_managed_companies_company_uuid_accept_terms_of_service_request.rb +30 -0
  427. data/lib/gusto_embedded/models/operations/post_partner_managed_companies_company_uuid_accept_terms_of_service_requestbody.rb +30 -0
  428. data/lib/gusto_embedded/models/operations/post_partner_managed_companies_company_uuid_accept_terms_of_service_response.rb +39 -0
  429. data/lib/gusto_embedded/models/operations/post_partner_managed_companies_company_uuid_accept_terms_of_service_responsebody.rb +24 -0
  430. data/lib/gusto_embedded/models/operations/post_partner_managed_companies_company_uuid_retrieve_terms_of_service_request.rb +30 -0
  431. data/lib/gusto_embedded/models/operations/post_partner_managed_companies_company_uuid_retrieve_terms_of_service_requestbody.rb +24 -0
  432. data/lib/gusto_embedded/models/operations/post_partner_managed_companies_company_uuid_retrieve_terms_of_service_response.rb +39 -0
  433. data/lib/gusto_embedded/models/operations/post_partner_managed_companies_company_uuid_retrieve_terms_of_service_responsebody.rb +24 -0
  434. data/lib/gusto_embedded/models/operations/post_payrolls_gross_up_payroll_uuid_request.rb +30 -0
  435. data/lib/gusto_embedded/models/operations/post_payrolls_gross_up_payroll_uuid_requestbody.rb +27 -0
  436. data/lib/gusto_embedded/models/operations/post_payrolls_gross_up_payroll_uuid_response.rb +36 -0
  437. data/lib/gusto_embedded/models/operations/post_v1_companies_attachment_request.rb +30 -0
  438. data/lib/gusto_embedded/models/operations/post_v1_companies_attachment_requestbody.rb +27 -0
  439. data/lib/gusto_embedded/models/operations/post_v1_companies_attachment_response.rb +39 -0
  440. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_admins_request.rb +30 -0
  441. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_admins_requestbody.rb +30 -0
  442. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_admins_response.rb +39 -0
  443. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_bank_accounts_request.rb +30 -0
  444. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_bank_accounts_requestbody.rb +30 -0
  445. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_bank_accounts_response.rb +39 -0
  446. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_company_benefits_request.rb +30 -0
  447. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_company_benefits_requestbody.rb +36 -0
  448. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_company_benefits_response.rb +39 -0
  449. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payment_groups_payment_method.rb +19 -0
  450. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payment_groups_preview_contractor_payments.rb +39 -0
  451. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payment_groups_preview_payment_method.rb +19 -0
  452. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payment_groups_preview_request.rb +30 -0
  453. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payment_groups_preview_requestbody.rb +30 -0
  454. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payment_groups_preview_response.rb +39 -0
  455. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payment_groups_request.rb +30 -0
  456. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payment_groups_requestbody.rb +30 -0
  457. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payment_groups_response.rb +39 -0
  458. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payments_payment_method.rb +19 -0
  459. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payments_request.rb +30 -0
  460. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payments_requestbody.rb +42 -0
  461. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payments_response.rb +39 -0
  462. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_earning_types_request.rb +30 -0
  463. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_earning_types_requestbody.rb +24 -0
  464. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_earning_types_response.rb +39 -0
  465. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_locations_request.rb +30 -0
  466. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_locations_requestbody.rb +45 -0
  467. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_locations_response.rb +39 -0
  468. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_pay_schedules_assign_request.rb +30 -0
  469. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_pay_schedules_assign_response.rb +36 -0
  470. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_pay_schedules_assignment_preview_request.rb +30 -0
  471. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_pay_schedules_assignment_preview_response.rb +39 -0
  472. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_pay_schedules_request.rb +30 -0
  473. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_pay_schedules_requestbody.rb +39 -0
  474. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_pay_schedules_response.rb +39 -0
  475. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_payrolls_request.rb +30 -0
  476. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_payrolls_requestbody.rb +51 -0
  477. data/lib/gusto_embedded/models/operations/post_v1_companies_company_id_payrolls_response.rb +39 -0
  478. data/lib/gusto_embedded/models/operations/post_v1_companies_company_uuid_contractors_request.rb +30 -0
  479. data/lib/gusto_embedded/models/operations/post_v1_companies_company_uuid_contractors_requestbody.rb +78 -0
  480. data/lib/gusto_embedded/models/operations/post_v1_companies_company_uuid_contractors_response.rb +39 -0
  481. data/lib/gusto_embedded/models/operations/post_v1_companies_company_uuid_contractors_type.rb +18 -0
  482. data/lib/gusto_embedded/models/operations/post_v1_companies_company_uuid_signatories_invite_request.rb +30 -0
  483. data/lib/gusto_embedded/models/operations/post_v1_companies_company_uuid_signatories_invite_requestbody.rb +33 -0
  484. data/lib/gusto_embedded/models/operations/post_v1_companies_company_uuid_signatories_invite_response.rb +39 -0
  485. data/lib/gusto_embedded/models/operations/post_v1_company_flows_request.rb +30 -0
  486. data/lib/gusto_embedded/models/operations/post_v1_company_flows_requestbody.rb +30 -0
  487. data/lib/gusto_embedded/models/operations/post_v1_company_flows_response.rb +39 -0
  488. data/lib/gusto_embedded/models/operations/post_v1_company_signatories_request.rb +30 -0
  489. data/lib/gusto_embedded/models/operations/post_v1_company_signatories_requestbody.rb +48 -0
  490. data/lib/gusto_embedded/models/operations/post_v1_company_signatories_response.rb +39 -0
  491. data/lib/gusto_embedded/models/operations/post_v1_compensations_compensation_id_request.rb +30 -0
  492. data/lib/gusto_embedded/models/operations/post_v1_compensations_compensation_id_requestbody.rb +39 -0
  493. data/lib/gusto_embedded/models/operations/post_v1_compensations_compensation_id_response.rb +39 -0
  494. data/lib/gusto_embedded/models/operations/post_v1_contractors_contractor_uuid_bank_accounts_account_type.rb +18 -0
  495. data/lib/gusto_embedded/models/operations/post_v1_contractors_contractor_uuid_bank_accounts_request.rb +30 -0
  496. data/lib/gusto_embedded/models/operations/post_v1_contractors_contractor_uuid_bank_accounts_requestbody.rb +33 -0
  497. data/lib/gusto_embedded/models/operations/post_v1_contractors_contractor_uuid_bank_accounts_response.rb +39 -0
  498. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_bank_accounts_account_type.rb +18 -0
  499. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_bank_accounts_request.rb +30 -0
  500. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_bank_accounts_requestbody.rb +33 -0
  501. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_bank_accounts_response.rb +39 -0
  502. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_employee_benefits_request.rb +30 -0
  503. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_employee_benefits_requestbody.rb +75 -0
  504. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_employee_benefits_response.rb +39 -0
  505. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_employee_benefits_type.rb +25 -0
  506. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_garnishments_request.rb +30 -0
  507. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_garnishments_requestbody.rb +57 -0
  508. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_garnishments_response.rb +39 -0
  509. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_home_addresses_request.rb +30 -0
  510. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_home_addresses_requestbody.rb +42 -0
  511. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_home_addresses_response.rb +39 -0
  512. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_rehire_request.rb +30 -0
  513. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_rehire_response.rb +39 -0
  514. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_terminations_request.rb +30 -0
  515. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_terminations_requestbody.rb +27 -0
  516. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_terminations_response.rb +39 -0
  517. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_work_addresses_request.rb +30 -0
  518. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_work_addresses_requestbody.rb +27 -0
  519. data/lib/gusto_embedded/models/operations/post_v1_employees_employee_id_work_addresses_response.rb +39 -0
  520. data/lib/gusto_embedded/models/operations/post_v1_employees_request.rb +30 -0
  521. data/lib/gusto_embedded/models/operations/post_v1_employees_requestbody.rb +45 -0
  522. data/lib/gusto_embedded/models/operations/post_v1_employees_response.rb +39 -0
  523. data/lib/gusto_embedded/models/operations/post_v1_external_payroll_request.rb +30 -0
  524. data/lib/gusto_embedded/models/operations/post_v1_external_payroll_requestbody.rb +30 -0
  525. data/lib/gusto_embedded/models/operations/post_v1_external_payroll_response.rb +39 -0
  526. data/lib/gusto_embedded/models/operations/post_v1_historical_employees_request.rb +30 -0
  527. data/lib/gusto_embedded/models/operations/post_v1_historical_employees_response.rb +39 -0
  528. data/lib/gusto_embedded/models/operations/post_v1_jobs_job_id_request.rb +30 -0
  529. data/lib/gusto_embedded/models/operations/post_v1_jobs_job_id_requestbody.rb +36 -0
  530. data/lib/gusto_embedded/models/operations/post_v1_jobs_job_id_response.rb +39 -0
  531. data/lib/gusto_embedded/models/operations/post_v1_partner_managed_companies_request.rb +27 -0
  532. data/lib/gusto_embedded/models/operations/post_v1_partner_managed_companies_requestbody.rb +27 -0
  533. data/lib/gusto_embedded/models/operations/post_v1_partner_managed_companies_response.rb +39 -0
  534. data/lib/gusto_embedded/models/operations/post_v1_partner_managed_companies_responsebody.rb +33 -0
  535. data/lib/gusto_embedded/models/operations/post_v1_partner_managed_companies_security.rb +24 -0
  536. data/lib/gusto_embedded/models/operations/post_v1_payrolls_payroll_id_calculate_accruing_time_off_hours_request.rb +33 -0
  537. data/lib/gusto_embedded/models/operations/post_v1_payrolls_payroll_id_calculate_accruing_time_off_hours_requestbody.rb +36 -0
  538. data/lib/gusto_embedded/models/operations/post_v1_payrolls_payroll_id_calculate_accruing_time_off_hours_response.rb +39 -0
  539. data/lib/gusto_embedded/models/operations/post_v1_payrolls_payroll_uuid_generated_documents_printable_payroll_checks_request.rb +30 -0
  540. data/lib/gusto_embedded/models/operations/post_v1_payrolls_payroll_uuid_generated_documents_printable_payroll_checks_requestbody.rb +27 -0
  541. data/lib/gusto_embedded/models/operations/post_v1_payrolls_payroll_uuid_generated_documents_printable_payroll_checks_response.rb +39 -0
  542. data/lib/gusto_embedded/models/operations/post_v1_plaid_processor_token_request.rb +27 -0
  543. data/lib/gusto_embedded/models/operations/post_v1_plaid_processor_token_requestbody.rb +30 -0
  544. data/lib/gusto_embedded/models/operations/post_v1_plaid_processor_token_response.rb +39 -0
  545. data/lib/gusto_embedded/models/operations/post_v1_sandbox_generate_1099_request.rb +27 -0
  546. data/lib/gusto_embedded/models/operations/post_v1_sandbox_generate_1099_requestbody.rb +28 -0
  547. data/lib/gusto_embedded/models/operations/post_v1_sandbox_generate_1099_response.rb +39 -0
  548. data/lib/gusto_embedded/models/operations/post_v1_sandbox_generate_w2_form.rb +51 -0
  549. data/lib/gusto_embedded/models/operations/post_v1_sandbox_generate_w2_request.rb +27 -0
  550. data/lib/gusto_embedded/models/operations/post_v1_sandbox_generate_w2_requestbody.rb +28 -0
  551. data/lib/gusto_embedded/models/operations/post_v1_sandbox_generate_w2_response.rb +39 -0
  552. data/lib/gusto_embedded/models/operations/post_v1_webhook_subscription_request.rb +27 -0
  553. data/lib/gusto_embedded/models/operations/post_v1_webhook_subscription_requestbody.rb +27 -0
  554. data/lib/gusto_embedded/models/operations/post_v1_webhook_subscription_response.rb +39 -0
  555. data/lib/gusto_embedded/models/operations/post_v1_webhook_subscription_security.rb +24 -0
  556. data/lib/gusto_embedded/models/operations/presidents_day.rb +24 -0
  557. data/lib/gusto_embedded/models/operations/printing_format.rb +18 -0
  558. data/lib/gusto_embedded/models/operations/processing_statuses.rb +18 -0
  559. data/lib/gusto_embedded/models/operations/put_add_people_to_department_request.rb +30 -0
  560. data/lib/gusto_embedded/models/operations/put_add_people_to_department_requestbody.rb +30 -0
  561. data/lib/gusto_embedded/models/operations/put_add_people_to_department_response.rb +33 -0
  562. data/lib/gusto_embedded/models/operations/put_api_v1_companies_company_id_payrolls_payroll_id_cancel_request.rb +30 -0
  563. data/lib/gusto_embedded/models/operations/put_api_v1_companies_company_id_payrolls_payroll_id_cancel_response.rb +39 -0
  564. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_add_employees.rb +24 -0
  565. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_add_request.rb +30 -0
  566. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_add_requestbody.rb +27 -0
  567. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_add_response.rb +39 -0
  568. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_christmas_day.rb +24 -0
  569. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_columbus_day.rb +24 -0
  570. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_federal_holidays.rb +54 -0
  571. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_independence_day.rb +24 -0
  572. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_juneteenth.rb +24 -0
  573. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_labor_day.rb +24 -0
  574. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_memorial_day.rb +24 -0
  575. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_mlk_day.rb +24 -0
  576. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_new_years_day.rb +24 -0
  577. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_presidents_day.rb +24 -0
  578. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_remove_employees.rb +24 -0
  579. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_remove_request.rb +30 -0
  580. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_remove_requestbody.rb +27 -0
  581. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_remove_response.rb +39 -0
  582. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_request.rb +30 -0
  583. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_requestbody.rb +27 -0
  584. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_response.rb +39 -0
  585. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_thanksgiving.rb +24 -0
  586. data/lib/gusto_embedded/models/operations/put_companies_company_uuid_holiday_pay_policy_veterans_day.rb +24 -0
  587. data/lib/gusto_embedded/models/operations/put_departments_request.rb +30 -0
  588. data/lib/gusto_embedded/models/operations/put_departments_requestbody.rb +27 -0
  589. data/lib/gusto_embedded/models/operations/put_departments_response.rb +39 -0
  590. data/lib/gusto_embedded/models/operations/put_remove_people_from_department_contractors.rb +24 -0
  591. data/lib/gusto_embedded/models/operations/put_remove_people_from_department_employees.rb +24 -0
  592. data/lib/gusto_embedded/models/operations/put_remove_people_from_department_request.rb +30 -0
  593. data/lib/gusto_embedded/models/operations/put_remove_people_from_department_requestbody.rb +30 -0
  594. data/lib/gusto_embedded/models/operations/put_remove_people_from_department_response.rb +33 -0
  595. data/lib/gusto_embedded/models/operations/put_time_off_policies_time_off_policy_uuid_request.rb +30 -0
  596. data/lib/gusto_embedded/models/operations/put_time_off_policies_time_off_policy_uuid_requestbody.rb +48 -0
  597. data/lib/gusto_embedded/models/operations/put_time_off_policies_time_off_policy_uuid_response.rb +39 -0
  598. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_bank_accounts_verify_request.rb +33 -0
  599. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_bank_accounts_verify_requestbody.rb +27 -0
  600. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_bank_accounts_verify_response.rb +39 -0
  601. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_earning_types_earning_type_uuid_request.rb +33 -0
  602. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_earning_types_earning_type_uuid_requestbody.rb +24 -0
  603. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_earning_types_earning_type_uuid_response.rb +39 -0
  604. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_federal_tax_details_request.rb +30 -0
  605. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_federal_tax_details_requestbody.rb +41 -0
  606. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_federal_tax_details_response.rb +39 -0
  607. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_pay_schedules_pay_schedule_id_frequency.rb +20 -0
  608. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_pay_schedules_pay_schedule_id_request.rb +33 -0
  609. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_pay_schedules_pay_schedule_id_requestbody.rb +45 -0
  610. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_pay_schedules_pay_schedule_id_response.rb +39 -0
  611. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_payrolls_payroll_id_calculate_request.rb +30 -0
  612. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_payrolls_payroll_id_calculate_response.rb +33 -0
  613. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_payrolls_payroll_id_prepare_request.rb +30 -0
  614. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_payrolls_payroll_id_prepare_response.rb +33 -0
  615. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_payrolls_payroll_id_submit_request.rb +33 -0
  616. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_payrolls_payroll_id_submit_requestbody.rb +24 -0
  617. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_payrolls_payroll_id_submit_response.rb +33 -0
  618. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_payrolls_request.rb +33 -0
  619. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_payrolls_requestbody.rb +24 -0
  620. data/lib/gusto_embedded/models/operations/put_v1_companies_company_id_payrolls_response.rb +39 -0
  621. data/lib/gusto_embedded/models/operations/put_v1_companies_company_uuid_signatories_signatory_uuid_home_address.rb +36 -0
  622. data/lib/gusto_embedded/models/operations/put_v1_companies_company_uuid_signatories_signatory_uuid_request.rb +33 -0
  623. data/lib/gusto_embedded/models/operations/put_v1_companies_company_uuid_signatories_signatory_uuid_requestbody.rb +48 -0
  624. data/lib/gusto_embedded/models/operations/put_v1_companies_company_uuid_signatories_signatory_uuid_response.rb +39 -0
  625. data/lib/gusto_embedded/models/operations/put_v1_companies_company_uuid_tax_requirements_state_request.rb +33 -0
  626. data/lib/gusto_embedded/models/operations/put_v1_companies_company_uuid_tax_requirements_state_requestbody.rb +24 -0
  627. data/lib/gusto_embedded/models/operations/put_v1_companies_company_uuid_tax_requirements_state_response.rb +36 -0
  628. data/lib/gusto_embedded/models/operations/put_v1_companies_request.rb +30 -0
  629. data/lib/gusto_embedded/models/operations/put_v1_companies_requestbody.rb +24 -0
  630. data/lib/gusto_embedded/models/operations/put_v1_companies_response.rb +39 -0
  631. data/lib/gusto_embedded/models/operations/put_v1_company_benefits_company_benefit_id_employee_benefits_request.rb +30 -0
  632. data/lib/gusto_embedded/models/operations/put_v1_company_benefits_company_benefit_id_employee_benefits_requestbody.rb +24 -0
  633. data/lib/gusto_embedded/models/operations/put_v1_company_benefits_company_benefit_id_employee_benefits_response.rb +39 -0
  634. data/lib/gusto_embedded/models/operations/put_v1_company_benefits_company_benefit_id_request.rb +30 -0
  635. data/lib/gusto_embedded/models/operations/put_v1_company_benefits_company_benefit_id_requestbody.rb +30 -0
  636. data/lib/gusto_embedded/models/operations/put_v1_company_benefits_company_benefit_id_response.rb +39 -0
  637. data/lib/gusto_embedded/models/operations/put_v1_company_form_sign_request.rb +33 -0
  638. data/lib/gusto_embedded/models/operations/put_v1_company_form_sign_requestbody.rb +30 -0
  639. data/lib/gusto_embedded/models/operations/put_v1_company_form_sign_response.rb +39 -0
  640. data/lib/gusto_embedded/models/operations/put_v1_company_industry_request.rb +30 -0
  641. data/lib/gusto_embedded/models/operations/put_v1_company_industry_requestbody.rb +30 -0
  642. data/lib/gusto_embedded/models/operations/put_v1_company_industry_response.rb +39 -0
  643. data/lib/gusto_embedded/models/operations/put_v1_company_payment_configs_request.rb +30 -0
  644. data/lib/gusto_embedded/models/operations/put_v1_company_payment_configs_response.rb +39 -0
  645. data/lib/gusto_embedded/models/operations/put_v1_compensations_compensation_id_minimum_wages.rb +24 -0
  646. data/lib/gusto_embedded/models/operations/put_v1_compensations_compensation_id_payment_unit.rb +21 -0
  647. data/lib/gusto_embedded/models/operations/put_v1_compensations_compensation_id_request.rb +30 -0
  648. data/lib/gusto_embedded/models/operations/put_v1_compensations_compensation_id_requestbody.rb +39 -0
  649. data/lib/gusto_embedded/models/operations/put_v1_compensations_compensation_id_response.rb +39 -0
  650. data/lib/gusto_embedded/models/operations/put_v1_contractor_document_sign_request.rb +33 -0
  651. data/lib/gusto_embedded/models/operations/put_v1_contractor_document_sign_requestbody.rb +30 -0
  652. data/lib/gusto_embedded/models/operations/put_v1_contractor_document_sign_response.rb +39 -0
  653. data/lib/gusto_embedded/models/operations/put_v1_contractor_payment_groups_contractor_payment_group_id_fund_request.rb +27 -0
  654. data/lib/gusto_embedded/models/operations/put_v1_contractor_payment_groups_contractor_payment_group_id_fund_response.rb +39 -0
  655. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_id_payment_method_request.rb +30 -0
  656. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_id_payment_method_requestbody.rb +28 -0
  657. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_id_payment_method_response.rb +39 -0
  658. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_id_payment_method_type.rb +19 -0
  659. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_uuid_address_request.rb +30 -0
  660. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_uuid_address_requestbody.rb +39 -0
  661. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_uuid_address_response.rb +39 -0
  662. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_uuid_onboarding_status_request.rb +30 -0
  663. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_uuid_onboarding_status_requestbody.rb +24 -0
  664. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_uuid_onboarding_status_response.rb +39 -0
  665. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_uuid_request.rb +30 -0
  666. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_uuid_requestbody.rb +81 -0
  667. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_uuid_response.rb +39 -0
  668. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_uuid_type.rb +18 -0
  669. data/lib/gusto_embedded/models/operations/put_v1_contractors_contractor_uuid_wage_type.rb +19 -0
  670. data/lib/gusto_embedded/models/operations/put_v1_employee_benefits_employee_benefit_id_contribution.rb +35 -0
  671. data/lib/gusto_embedded/models/operations/put_v1_employee_benefits_employee_benefit_id_deduction_reduces_taxable_income.rb +19 -0
  672. data/lib/gusto_embedded/models/operations/put_v1_employee_benefits_employee_benefit_id_limit_option.rb +25 -0
  673. data/lib/gusto_embedded/models/operations/put_v1_employee_benefits_employee_benefit_id_request.rb +30 -0
  674. data/lib/gusto_embedded/models/operations/put_v1_employee_benefits_employee_benefit_id_requestbody.rb +75 -0
  675. data/lib/gusto_embedded/models/operations/put_v1_employee_benefits_employee_benefit_id_response.rb +39 -0
  676. data/lib/gusto_embedded/models/operations/put_v1_employee_benefits_employee_benefit_id_type.rb +25 -0
  677. data/lib/gusto_embedded/models/operations/put_v1_employee_form_sign_request.rb +36 -0
  678. data/lib/gusto_embedded/models/operations/put_v1_employee_form_sign_requestbody.rb +138 -0
  679. data/lib/gusto_embedded/models/operations/put_v1_employee_form_sign_response.rb +39 -0
  680. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_bank_accounts_account_type.rb +18 -0
  681. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_bank_accounts_request.rb +33 -0
  682. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_bank_accounts_requestbody.rb +33 -0
  683. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_bank_accounts_response.rb +39 -0
  684. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_federal_taxes_request.rb +30 -0
  685. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_federal_taxes_requestbody.rb +45 -0
  686. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_federal_taxes_response.rb +39 -0
  687. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_i9_authorization_documents_request.rb +30 -0
  688. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_i9_authorization_documents_requestbody.rb +24 -0
  689. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_i9_authorization_documents_response.rb +39 -0
  690. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_i9_authorization_employer_sign_request.rb +33 -0
  691. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_i9_authorization_employer_sign_requestbody.rb +39 -0
  692. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_i9_authorization_employer_sign_response.rb +39 -0
  693. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_i9_authorization_request.rb +30 -0
  694. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_i9_authorization_requestbody.rb +63 -0
  695. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_i9_authorization_response.rb +39 -0
  696. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_onboarding_documents_config_request.rb +30 -0
  697. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_onboarding_documents_config_requestbody.rb +24 -0
  698. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_onboarding_documents_config_response.rb +33 -0
  699. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_onboarding_status_request.rb +30 -0
  700. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_onboarding_status_requestbody.rb +24 -0
  701. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_onboarding_status_response.rb +39 -0
  702. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_payment_method_request.rb +30 -0
  703. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_payment_method_requestbody.rb +33 -0
  704. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_payment_method_response.rb +39 -0
  705. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_rehire_request.rb +30 -0
  706. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_rehire_requestbody.rb +39 -0
  707. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_rehire_response.rb +39 -0
  708. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_state_taxes_answers.rb +30 -0
  709. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_state_taxes_questions.rb +27 -0
  710. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_state_taxes_request.rb +30 -0
  711. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_state_taxes_requestbody.rb +24 -0
  712. data/lib/gusto_embedded/models/operations/put_v1_employees_employee_id_state_taxes_response.rb +36 -0
  713. data/lib/gusto_embedded/models/operations/put_v1_employees_request.rb +30 -0
  714. data/lib/gusto_embedded/models/operations/put_v1_employees_requestbody.rb +48 -0
  715. data/lib/gusto_embedded/models/operations/put_v1_employees_response.rb +39 -0
  716. data/lib/gusto_embedded/models/operations/put_v1_external_payroll_request.rb +33 -0
  717. data/lib/gusto_embedded/models/operations/put_v1_external_payroll_requestbody.rb +27 -0
  718. data/lib/gusto_embedded/models/operations/put_v1_external_payroll_response.rb +39 -0
  719. data/lib/gusto_embedded/models/operations/put_v1_garnishments_garnishment_id_request.rb +30 -0
  720. data/lib/gusto_embedded/models/operations/put_v1_garnishments_garnishment_id_requestbody.rb +57 -0
  721. data/lib/gusto_embedded/models/operations/put_v1_garnishments_garnishment_id_response.rb +39 -0
  722. data/lib/gusto_embedded/models/operations/put_v1_historical_employees_home_address.rb +36 -0
  723. data/lib/gusto_embedded/models/operations/put_v1_historical_employees_request.rb +33 -0
  724. data/lib/gusto_embedded/models/operations/put_v1_historical_employees_requestbody.rb +60 -0
  725. data/lib/gusto_embedded/models/operations/put_v1_historical_employees_response.rb +33 -0
  726. data/lib/gusto_embedded/models/operations/put_v1_home_addresses_home_address_uuid_request.rb +30 -0
  727. data/lib/gusto_embedded/models/operations/put_v1_home_addresses_home_address_uuid_requestbody.rb +45 -0
  728. data/lib/gusto_embedded/models/operations/put_v1_home_addresses_home_address_uuid_response.rb +39 -0
  729. data/lib/gusto_embedded/models/operations/put_v1_jobs_job_id_request.rb +30 -0
  730. data/lib/gusto_embedded/models/operations/put_v1_jobs_job_id_requestbody.rb +39 -0
  731. data/lib/gusto_embedded/models/operations/put_v1_jobs_job_id_response.rb +39 -0
  732. data/lib/gusto_embedded/models/operations/put_v1_locations_location_id_request.rb +30 -0
  733. data/lib/gusto_embedded/models/operations/put_v1_locations_location_id_requestbody.rb +51 -0
  734. data/lib/gusto_embedded/models/operations/put_v1_locations_location_id_response.rb +39 -0
  735. data/lib/gusto_embedded/models/operations/put_v1_partner_managed_companies_company_uuid_migrate_request.rb +30 -0
  736. data/lib/gusto_embedded/models/operations/put_v1_partner_managed_companies_company_uuid_migrate_requestbody.rb +30 -0
  737. data/lib/gusto_embedded/models/operations/put_v1_partner_managed_companies_company_uuid_migrate_response.rb +39 -0
  738. data/lib/gusto_embedded/models/operations/put_v1_partner_managed_companies_company_uuid_migrate_responsebody.rb +27 -0
  739. data/lib/gusto_embedded/models/operations/put_v1_tax_liabilities_finish_request.rb +27 -0
  740. data/lib/gusto_embedded/models/operations/put_v1_tax_liabilities_finish_response.rb +36 -0
  741. data/lib/gusto_embedded/models/operations/put_v1_tax_liabilities_request.rb +30 -0
  742. data/lib/gusto_embedded/models/operations/put_v1_tax_liabilities_requestbody.rb +24 -0
  743. data/lib/gusto_embedded/models/operations/put_v1_tax_liabilities_response.rb +39 -0
  744. data/lib/gusto_embedded/models/operations/put_v1_terminations_employee_id_request.rb +30 -0
  745. data/lib/gusto_embedded/models/operations/put_v1_terminations_employee_id_requestbody.rb +30 -0
  746. data/lib/gusto_embedded/models/operations/put_v1_terminations_employee_id_response.rb +39 -0
  747. data/lib/gusto_embedded/models/operations/put_v1_time_off_policies_time_off_policy_uuid_deactivate_request.rb +27 -0
  748. data/lib/gusto_embedded/models/operations/put_v1_time_off_policies_time_off_policy_uuid_deactivate_response.rb +39 -0
  749. data/lib/gusto_embedded/models/operations/put_v1_time_off_policies_time_off_policy_uuid_remove_employees_employees.rb +24 -0
  750. data/lib/gusto_embedded/models/operations/put_v1_time_off_policies_time_off_policy_uuid_remove_employees_request.rb +30 -0
  751. data/lib/gusto_embedded/models/operations/put_v1_time_off_policies_time_off_policy_uuid_remove_employees_requestbody.rb +24 -0
  752. data/lib/gusto_embedded/models/operations/put_v1_time_off_policies_time_off_policy_uuid_remove_employees_response.rb +39 -0
  753. data/lib/gusto_embedded/models/operations/put_v1_verify_webhook_subscription_uuid_request.rb +30 -0
  754. data/lib/gusto_embedded/models/operations/put_v1_verify_webhook_subscription_uuid_requestbody.rb +24 -0
  755. data/lib/gusto_embedded/models/operations/put_v1_verify_webhook_subscription_uuid_response.rb +39 -0
  756. data/lib/gusto_embedded/models/operations/put_v1_verify_webhook_subscription_uuid_security.rb +24 -0
  757. data/lib/gusto_embedded/models/operations/put_v1_webhook_subscription_uuid_request.rb +30 -0
  758. data/lib/gusto_embedded/models/operations/put_v1_webhook_subscription_uuid_requestbody.rb +24 -0
  759. data/lib/gusto_embedded/models/operations/put_v1_webhook_subscription_uuid_response.rb +39 -0
  760. data/lib/gusto_embedded/models/operations/put_v1_webhook_subscription_uuid_security.rb +24 -0
  761. data/lib/gusto_embedded/models/operations/put_v1_webhook_subscription_uuid_subscription_types.rb +31 -0
  762. data/lib/gusto_embedded/models/operations/put_v1_work_addresses_work_address_uuid_request.rb +30 -0
  763. data/lib/gusto_embedded/models/operations/put_v1_work_addresses_work_address_uuid_requestbody.rb +30 -0
  764. data/lib/gusto_embedded/models/operations/put_v1_work_addresses_work_address_uuid_response.rb +39 -0
  765. data/lib/gusto_embedded/models/operations/put_version_time_off_policies_time_off_policy_uuid_add_employees_employees.rb +27 -0
  766. data/lib/gusto_embedded/models/operations/put_version_time_off_policies_time_off_policy_uuid_add_employees_request.rb +30 -0
  767. data/lib/gusto_embedded/models/operations/put_version_time_off_policies_time_off_policy_uuid_add_employees_requestbody.rb +24 -0
  768. data/lib/gusto_embedded/models/operations/put_version_time_off_policies_time_off_policy_uuid_add_employees_response.rb +39 -0
  769. data/lib/gusto_embedded/models/operations/put_version_time_off_policies_time_off_policy_uuid_balance_employees.rb +27 -0
  770. data/lib/gusto_embedded/models/operations/put_version_time_off_policies_time_off_policy_uuid_balance_request.rb +30 -0
  771. data/lib/gusto_embedded/models/operations/put_version_time_off_policies_time_off_policy_uuid_balance_requestbody.rb +24 -0
  772. data/lib/gusto_embedded/models/operations/put_version_time_off_policies_time_off_policy_uuid_balance_response.rb +39 -0
  773. data/lib/gusto_embedded/models/operations/put_wire_in_requests_wire_in_request_uuid_request.rb +30 -0
  774. data/lib/gusto_embedded/models/operations/put_wire_in_requests_wire_in_request_uuid_requestbody.rb +33 -0
  775. data/lib/gusto_embedded/models/operations/put_wire_in_requests_wire_in_request_uuid_response.rb +39 -0
  776. data/lib/gusto_embedded/models/operations/queryparam_frequency.rb +20 -0
  777. data/lib/gusto_embedded/models/operations/queryparam_include.rb +18 -0
  778. data/lib/gusto_embedded/models/operations/questions.rb +27 -0
  779. data/lib/gusto_embedded/models/operations/redebit_recovery_case_request.rb +27 -0
  780. data/lib/gusto_embedded/models/operations/redebit_recovery_case_response.rb +36 -0
  781. data/lib/gusto_embedded/models/operations/refresh_access_token_request.rb +27 -0
  782. data/lib/gusto_embedded/models/operations/refresh_access_token_requestbody.rb +36 -0
  783. data/lib/gusto_embedded/models/operations/refresh_access_token_response.rb +33 -0
  784. data/lib/gusto_embedded/models/operations/requirement_sets.rb +33 -0
  785. data/lib/gusto_embedded/models/operations/requirements.rb +27 -0
  786. data/lib/gusto_embedded/models/operations/resource.rb +27 -0
  787. data/lib/gusto_embedded/models/operations/resource_owner.rb +27 -0
  788. data/lib/gusto_embedded/models/operations/responsebody.rb +27 -0
  789. data/lib/gusto_embedded/models/operations/split_by.rb +18 -0
  790. data/lib/gusto_embedded/models/operations/splits.rb +34 -0
  791. data/lib/gusto_embedded/models/operations/states.rb +27 -0
  792. data/lib/gusto_embedded/models/operations/submission_blockers.rb +27 -0
  793. data/lib/gusto_embedded/models/operations/subscription_types.rb +31 -0
  794. data/lib/gusto_embedded/models/operations/tax_payer_type.rb +28 -0
  795. data/lib/gusto_embedded/models/operations/taxes.rb +27 -0
  796. data/lib/gusto_embedded/models/operations/termination.rb +24 -0
  797. data/lib/gusto_embedded/models/operations/thanksgiving.rb +24 -0
  798. data/lib/gusto_embedded/models/operations/type.rb +18 -0
  799. data/lib/gusto_embedded/models/operations/user.rb +33 -0
  800. data/lib/gusto_embedded/models/operations/veterans_day.rb +24 -0
  801. data/lib/gusto_embedded/models/operations/wage_type.rb +19 -0
  802. data/lib/gusto_embedded/models/operations/withholding_pay_period.rb +23 -0
  803. data/lib/gusto_embedded/models/operations/work_address.rb +24 -0
  804. data/lib/gusto_embedded/models/operations.rb +768 -0
  805. data/lib/gusto_embedded/models/shared/account_type.rb +18 -0
  806. data/lib/gusto_embedded/models/shared/accruing_time_off_hour.rb +27 -0
  807. data/lib/gusto_embedded/models/shared/ach_transaction.rb +63 -0
  808. data/lib/gusto_embedded/models/shared/ach_transaction_recipient_type.rb +18 -0
  809. data/lib/gusto_embedded/models/shared/active_companies.rb +33 -0
  810. data/lib/gusto_embedded/models/shared/address.rb +39 -0
  811. data/lib/gusto_embedded/models/shared/admin.rb +33 -0
  812. data/lib/gusto_embedded/models/shared/agencies.rb +37 -0
  813. data/lib/gusto_embedded/models/shared/applicable_benefits.rb +30 -0
  814. data/lib/gusto_embedded/models/shared/applicable_earnings.rb +36 -0
  815. data/lib/gusto_embedded/models/shared/applicable_if.rb +27 -0
  816. data/lib/gusto_embedded/models/shared/applicable_taxes.rb +33 -0
  817. data/lib/gusto_embedded/models/shared/authentication.rb +39 -0
  818. data/lib/gusto_embedded/models/shared/authorization_status.rb +20 -0
  819. data/lib/gusto_embedded/models/shared/benefit_summary.rb +39 -0
  820. data/lib/gusto_embedded/models/shared/benefit_summary_employees.rb +45 -0
  821. data/lib/gusto_embedded/models/shared/benefit_summary_pay_period.rb +27 -0
  822. data/lib/gusto_embedded/models/shared/benefit_type_requirements.rb +45 -0
  823. data/lib/gusto_embedded/models/shared/benefit_type_requirements_catch_up_default_value.rb +27 -0
  824. data/lib/gusto_embedded/models/shared/benefit_type_requirements_company_contribution_annual_maximum_default_value.rb +27 -0
  825. data/lib/gusto_embedded/models/shared/benefit_type_requirements_contribution.rb +33 -0
  826. data/lib/gusto_embedded/models/shared/benefit_type_requirements_coverage_amount_default_value.rb +27 -0
  827. data/lib/gusto_embedded/models/shared/benefit_type_requirements_coverage_salary_multiplier_default_value.rb +27 -0
  828. data/lib/gusto_embedded/models/shared/benefit_type_requirements_deduct_as_percentage_default_value.rb +27 -0
  829. data/lib/gusto_embedded/models/shared/benefit_type_requirements_default_value.rb +27 -0
  830. data/lib/gusto_embedded/models/shared/benefit_type_requirements_limit_option_default_value.rb +27 -0
  831. data/lib/gusto_embedded/models/shared/benefits.rb +33 -0
  832. data/lib/gusto_embedded/models/shared/catch_up.rb +33 -0
  833. data/lib/gusto_embedded/models/shared/category.rb +19 -0
  834. data/lib/gusto_embedded/models/shared/child_support_data.rb +24 -0
  835. data/lib/gusto_embedded/models/shared/columbus_day.rb +30 -0
  836. data/lib/gusto_embedded/models/shared/company.rb +75 -0
  837. data/lib/gusto_embedded/models/shared/company_address.rb +42 -0
  838. data/lib/gusto_embedded/models/shared/company_attachment.rb +33 -0
  839. data/lib/gusto_embedded/models/shared/company_bank_account.rb +61 -0
  840. data/lib/gusto_embedded/models/shared/company_benefit.rb +54 -0
  841. data/lib/gusto_embedded/models/shared/company_benefit_with_employee_benefits.rb +54 -0
  842. data/lib/gusto_embedded/models/shared/company_benefit_with_employee_benefits_contribution.rb +35 -0
  843. data/lib/gusto_embedded/models/shared/company_contribution_annual_maximum.rb +33 -0
  844. data/lib/gusto_embedded/models/shared/company_custom_field.rb +36 -0
  845. data/lib/gusto_embedded/models/shared/company_custom_field_list.rb +24 -0
  846. data/lib/gusto_embedded/models/shared/company_home_address.rb +39 -0
  847. data/lib/gusto_embedded/models/shared/company_onboarding_status.rb +30 -0
  848. data/lib/gusto_embedded/models/shared/company_paid_time_off.rb +24 -0
  849. data/lib/gusto_embedded/models/shared/company_status.rb +19 -0
  850. data/lib/gusto_embedded/models/shared/compensation.rb +51 -0
  851. data/lib/gusto_embedded/models/shared/compensations.rb +30 -0
  852. data/lib/gusto_embedded/models/shared/contractor.rb +91 -0
  853. data/lib/gusto_embedded/models/shared/contractor_address.rb +48 -0
  854. data/lib/gusto_embedded/models/shared/contractor_bank_account.rb +39 -0
  855. data/lib/gusto_embedded/models/shared/contractor_bank_account_account_type.rb +18 -0
  856. data/lib/gusto_embedded/models/shared/contractor_onboarding_status.rb +30 -0
  857. data/lib/gusto_embedded/models/shared/contractor_onboarding_status1.rb +23 -0
  858. data/lib/gusto_embedded/models/shared/contractor_onboarding_status_onboarding_status.rb +19 -0
  859. data/lib/gusto_embedded/models/shared/contractor_onboarding_status_onboarding_step.rb +36 -0
  860. data/lib/gusto_embedded/models/shared/contractor_payment.rb +60 -0
  861. data/lib/gusto_embedded/models/shared/contractor_payment_for_group.rb +57 -0
  862. data/lib/gusto_embedded/models/shared/contractor_payment_for_group_payment_method.rb +20 -0
  863. data/lib/gusto_embedded/models/shared/contractor_payment_for_group_status.rb +18 -0
  864. data/lib/gusto_embedded/models/shared/contractor_payment_for_group_wage_type.rb +18 -0
  865. data/lib/gusto_embedded/models/shared/contractor_payment_group.rb +45 -0
  866. data/lib/gusto_embedded/models/shared/contractor_payment_group_minimal.rb +42 -0
  867. data/lib/gusto_embedded/models/shared/contractor_payment_group_minimal_status.rb +18 -0
  868. data/lib/gusto_embedded/models/shared/contractor_payment_group_minimal_totals.rb +33 -0
  869. data/lib/gusto_embedded/models/shared/contractor_payment_group_status.rb +18 -0
  870. data/lib/gusto_embedded/models/shared/contractor_payment_group_totals.rb +33 -0
  871. data/lib/gusto_embedded/models/shared/contractor_payment_method.rb +33 -0
  872. data/lib/gusto_embedded/models/shared/contractor_payment_method1.rb +18 -0
  873. data/lib/gusto_embedded/models/shared/contractor_payment_method_split_by.rb +18 -0
  874. data/lib/gusto_embedded/models/shared/contractor_payment_method_type.rb +18 -0
  875. data/lib/gusto_embedded/models/shared/contractor_payment_payment_method.rb +20 -0
  876. data/lib/gusto_embedded/models/shared/contractor_payment_receipt.rb +57 -0
  877. data/lib/gusto_embedded/models/shared/contractor_payment_receipt_licensee.rb +39 -0
  878. data/lib/gusto_embedded/models/shared/contractor_payment_receipt_totals.rb +24 -0
  879. data/lib/gusto_embedded/models/shared/contractor_payment_status.rb +18 -0
  880. data/lib/gusto_embedded/models/shared/contractor_payment_wage_type.rb +18 -0
  881. data/lib/gusto_embedded/models/shared/contractor_payments.rb +52 -0
  882. data/lib/gusto_embedded/models/shared/contractor_type.rb +18 -0
  883. data/lib/gusto_embedded/models/shared/contractors.rb +24 -0
  884. data/lib/gusto_embedded/models/shared/contribution.rb +35 -0
  885. data/lib/gusto_embedded/models/shared/coverage_amount.rb +33 -0
  886. data/lib/gusto_embedded/models/shared/coverage_salary_multiplier.rb +33 -0
  887. data/lib/gusto_embedded/models/shared/create_report.rb +33 -0
  888. data/lib/gusto_embedded/models/shared/current_employment_status.rb +21 -0
  889. data/lib/gusto_embedded/models/shared/custom_field_type.rb +21 -0
  890. data/lib/gusto_embedded/models/shared/deduct_as_percentage.rb +33 -0
  891. data/lib/gusto_embedded/models/shared/deduction_reduces_taxable_income.rb +19 -0
  892. data/lib/gusto_embedded/models/shared/deductions.rb +27 -0
  893. data/lib/gusto_embedded/models/shared/default_value.rb +27 -0
  894. data/lib/gusto_embedded/models/shared/department.rb +39 -0
  895. data/lib/gusto_embedded/models/shared/department_employees.rb +24 -0
  896. data/lib/gusto_embedded/models/shared/departments.rb +27 -0
  897. data/lib/gusto_embedded/models/shared/document.rb +60 -0
  898. data/lib/gusto_embedded/models/shared/document_pdf.rb +27 -0
  899. data/lib/gusto_embedded/models/shared/document_signed.rb +54 -0
  900. data/lib/gusto_embedded/models/shared/document_signed_recipient_type.rb +19 -0
  901. data/lib/gusto_embedded/models/shared/document_type.rb +17 -0
  902. data/lib/gusto_embedded/models/shared/earning_type.rb +27 -0
  903. data/lib/gusto_embedded/models/shared/earning_type_list.rb +27 -0
  904. data/lib/gusto_embedded/models/shared/earnings.rb +33 -0
  905. data/lib/gusto_embedded/models/shared/employee.rb +102 -0
  906. data/lib/gusto_embedded/models/shared/employee_address.rb +57 -0
  907. data/lib/gusto_embedded/models/shared/employee_bank_account.rb +39 -0
  908. data/lib/gusto_embedded/models/shared/employee_bank_account_account_type.rb +18 -0
  909. data/lib/gusto_embedded/models/shared/employee_benefit.rb +86 -0
  910. data/lib/gusto_embedded/models/shared/employee_benefit_for_company_benefit.rb +80 -0
  911. data/lib/gusto_embedded/models/shared/employee_benefit_for_company_benefit_contribution.rb +35 -0
  912. data/lib/gusto_embedded/models/shared/employee_benefit_for_company_benefit_deduction_reduces_taxable_income.rb +19 -0
  913. data/lib/gusto_embedded/models/shared/employee_benefits.rb +45 -0
  914. data/lib/gusto_embedded/models/shared/employee_check_number_mapping.rb +27 -0
  915. data/lib/gusto_embedded/models/shared/employee_compensations.rb +48 -0
  916. data/lib/gusto_embedded/models/shared/employee_custom_field.rb +42 -0
  917. data/lib/gusto_embedded/models/shared/employee_deduction.rb +33 -0
  918. data/lib/gusto_embedded/models/shared/employee_federal_tax.rb +58 -0
  919. data/lib/gusto_embedded/models/shared/employee_onboarding_document.rb +24 -0
  920. data/lib/gusto_embedded/models/shared/employee_onboarding_status.rb +30 -0
  921. data/lib/gusto_embedded/models/shared/employee_onboarding_status_onboarding_step.rb +36 -0
  922. data/lib/gusto_embedded/models/shared/employee_pay_stub.rb +39 -0
  923. data/lib/gusto_embedded/models/shared/employee_payment_method.rb +33 -0
  924. data/lib/gusto_embedded/models/shared/employee_payment_method_type.rb +18 -0
  925. data/lib/gusto_embedded/models/shared/employee_state_tax.rb +36 -0
  926. data/lib/gusto_embedded/models/shared/employee_state_tax_answer.rb +30 -0
  927. data/lib/gusto_embedded/models/shared/employee_state_tax_input_question_format.rb +27 -0
  928. data/lib/gusto_embedded/models/shared/employee_state_tax_question.rb +36 -0
  929. data/lib/gusto_embedded/models/shared/employee_state_taxes.rb +27 -0
  930. data/lib/gusto_embedded/models/shared/employee_work_address.rb +57 -0
  931. data/lib/gusto_embedded/models/shared/employees.rb +27 -0
  932. data/lib/gusto_embedded/models/shared/employment_history_list.rb +36 -0
  933. data/lib/gusto_embedded/models/shared/employment_history_list_employment_status.rb +22 -0
  934. data/lib/gusto_embedded/models/shared/employment_status.rb +22 -0
  935. data/lib/gusto_embedded/models/shared/entity_error_object.rb +36 -0
  936. data/lib/gusto_embedded/models/shared/entity_error_object_metadata.rb +20 -0
  937. data/lib/gusto_embedded/models/shared/entity_type.rb +28 -0
  938. data/lib/gusto_embedded/models/shared/errors.rb +33 -0
  939. data/lib/gusto_embedded/models/shared/event.rb +42 -0
  940. data/lib/gusto_embedded/models/shared/external_payroll.rb +54 -0
  941. data/lib/gusto_embedded/models/shared/external_payroll_basic.rb +39 -0
  942. data/lib/gusto_embedded/models/shared/external_payroll_basic_status.rb +18 -0
  943. data/lib/gusto_embedded/models/shared/external_payroll_benefits.rb +30 -0
  944. data/lib/gusto_embedded/models/shared/external_payroll_items.rb +33 -0
  945. data/lib/gusto_embedded/models/shared/external_payroll_metadata.rb +24 -0
  946. data/lib/gusto_embedded/models/shared/external_payroll_tax_suggestions.rb +27 -0
  947. data/lib/gusto_embedded/models/shared/external_payroll_taxes.rb +27 -0
  948. data/lib/gusto_embedded/models/shared/federal_holidays.rb +51 -0
  949. data/lib/gusto_embedded/models/shared/federal_tax_details.rb +67 -0
  950. data/lib/gusto_embedded/models/shared/fields_.rb +48 -0
  951. data/lib/gusto_embedded/models/shared/fips_codes.rb +27 -0
  952. data/lib/gusto_embedded/models/shared/fixed.rb +24 -0
  953. data/lib/gusto_embedded/models/shared/fixed_compensations.rb +30 -0
  954. data/lib/gusto_embedded/models/shared/flow.rb +24 -0
  955. data/lib/gusto_embedded/models/shared/flsa_status_type.rb +22 -0
  956. data/lib/gusto_embedded/models/shared/form.rb +48 -0
  957. data/lib/gusto_embedded/models/shared/form_1099.rb +51 -0
  958. data/lib/gusto_embedded/models/shared/form_pdf.rb +30 -0
  959. data/lib/gusto_embedded/models/shared/funding_type.rb +20 -0
  960. data/lib/gusto_embedded/models/shared/garnishment.rb +66 -0
  961. data/lib/gusto_embedded/models/shared/garnishment_child_support.rb +39 -0
  962. data/lib/gusto_embedded/models/shared/garnishment_type.rb +23 -0
  963. data/lib/gusto_embedded/models/shared/generated_document.rb +30 -0
  964. data/lib/gusto_embedded/models/shared/generated_document_status.rb +20 -0
  965. data/lib/gusto_embedded/models/shared/gross_up_pay.rb +24 -0
  966. data/lib/gusto_embedded/models/shared/historical_employee_body.rb +57 -0
  967. data/lib/gusto_embedded/models/shared/historical_employee_body_home_address.rb +36 -0
  968. data/lib/gusto_embedded/models/shared/historical_employee_body_job.rb +24 -0
  969. data/lib/gusto_embedded/models/shared/historical_employee_body_termination.rb +24 -0
  970. data/lib/gusto_embedded/models/shared/holiday_pay_policy.rb +33 -0
  971. data/lib/gusto_embedded/models/shared/holiday_pay_policy_employees.rb +24 -0
  972. data/lib/gusto_embedded/models/shared/home_address.rb +39 -0
  973. data/lib/gusto_embedded/models/shared/hourly.rb +27 -0
  974. data/lib/gusto_embedded/models/shared/hourly_compensations.rb +39 -0
  975. data/lib/gusto_embedded/models/shared/i9_authorization.rb +57 -0
  976. data/lib/gusto_embedded/models/shared/i9_authorization_document.rb +36 -0
  977. data/lib/gusto_embedded/models/shared/i9_authorization_document_option.rb +36 -0
  978. data/lib/gusto_embedded/models/shared/i9_authorization_document_type.rb +19 -0
  979. data/lib/gusto_embedded/models/shared/id.rb +26 -0
  980. data/lib/gusto_embedded/models/shared/identity_verification_status.rb +25 -0
  981. data/lib/gusto_embedded/models/shared/independence_day.rb +30 -0
  982. data/lib/gusto_embedded/models/shared/industry.rb +33 -0
  983. data/lib/gusto_embedded/models/shared/invoice_data.rb +24 -0
  984. data/lib/gusto_embedded/models/shared/job.rb +60 -0
  985. data/lib/gusto_embedded/models/shared/juneteenth.rb +30 -0
  986. data/lib/gusto_embedded/models/shared/key.rb +19 -0
  987. data/lib/gusto_embedded/models/shared/labor_day.rb +30 -0
  988. data/lib/gusto_embedded/models/shared/licensee.rb +39 -0
  989. data/lib/gusto_embedded/models/shared/limit_option.rb +33 -0
  990. data/lib/gusto_embedded/models/shared/location.rb +66 -0
  991. data/lib/gusto_embedded/models/shared/memorial_day.rb +30 -0
  992. data/lib/gusto_embedded/models/shared/metadata.rb +20 -0
  993. data/lib/gusto_embedded/models/shared/minimum_wage.rb +39 -0
  994. data/lib/gusto_embedded/models/shared/minimum_wages.rb +30 -0
  995. data/lib/gusto_embedded/models/shared/mlk_day.rb +30 -0
  996. data/lib/gusto_embedded/models/shared/name.rb +19 -0
  997. data/lib/gusto_embedded/models/shared/new_years_day.rb +30 -0
  998. data/lib/gusto_embedded/models/shared/notification.rb +48 -0
  999. data/lib/gusto_embedded/models/shared/off_cycle_reason_type.rb +26 -0
  1000. data/lib/gusto_embedded/models/shared/onboarding_documents_config.rb +27 -0
  1001. data/lib/gusto_embedded/models/shared/onboarding_status.rb +24 -0
  1002. data/lib/gusto_embedded/models/shared/onboarding_step.rb +39 -0
  1003. data/lib/gusto_embedded/models/shared/options.rb +27 -0
  1004. data/lib/gusto_embedded/models/shared/pages.rb +27 -0
  1005. data/lib/gusto_embedded/models/shared/paid_holidays.rb +24 -0
  1006. data/lib/gusto_embedded/models/shared/paid_time_off.rb +51 -0
  1007. data/lib/gusto_embedded/models/shared/pay_period.rb +33 -0
  1008. data/lib/gusto_embedded/models/shared/pay_period_payroll.rb +36 -0
  1009. data/lib/gusto_embedded/models/shared/pay_schedule.rb +51 -0
  1010. data/lib/gusto_embedded/models/shared/pay_schedule_assignment.rb +39 -0
  1011. data/lib/gusto_embedded/models/shared/pay_schedule_assignment_body.rb +42 -0
  1012. data/lib/gusto_embedded/models/shared/pay_schedule_assignment_body_type.rb +20 -0
  1013. data/lib/gusto_embedded/models/shared/pay_schedule_assignment_department.rb +27 -0
  1014. data/lib/gusto_embedded/models/shared/pay_schedule_assignment_employee.rb +27 -0
  1015. data/lib/gusto_embedded/models/shared/pay_schedule_assignment_employee_change.rb +39 -0
  1016. data/lib/gusto_embedded/models/shared/pay_schedule_assignment_pay_period.rb +33 -0
  1017. data/lib/gusto_embedded/models/shared/pay_schedule_assignment_preview.rb +27 -0
  1018. data/lib/gusto_embedded/models/shared/pay_schedule_assignment_preview_type.rb +20 -0
  1019. data/lib/gusto_embedded/models/shared/pay_schedule_assignment_transition_pay_period.rb +27 -0
  1020. data/lib/gusto_embedded/models/shared/pay_schedule_create_update.rb +51 -0
  1021. data/lib/gusto_embedded/models/shared/pay_schedule_frequency.rb +22 -0
  1022. data/lib/gusto_embedded/models/shared/pay_schedule_frequency_create_update.rb +20 -0
  1023. data/lib/gusto_embedded/models/shared/pay_schedule_type.rb +20 -0
  1024. data/lib/gusto_embedded/models/shared/payment_configs.rb +33 -0
  1025. data/lib/gusto_embedded/models/shared/payment_direction.rb +18 -0
  1026. data/lib/gusto_embedded/models/shared/payment_event_type.rb +18 -0
  1027. data/lib/gusto_embedded/models/shared/payment_method.rb +18 -0
  1028. data/lib/gusto_embedded/models/shared/payment_method_bank_account.rb +36 -0
  1029. data/lib/gusto_embedded/models/shared/payment_period.rb +20 -0
  1030. data/lib/gusto_embedded/models/shared/payment_status.rb +20 -0
  1031. data/lib/gusto_embedded/models/shared/payment_unit.rb +21 -0
  1032. data/lib/gusto_embedded/models/shared/payment_uuid.rb +17 -0
  1033. data/lib/gusto_embedded/models/shared/payroll.rb +99 -0
  1034. data/lib/gusto_embedded/models/shared/payroll_benefits.rb +45 -0
  1035. data/lib/gusto_embedded/models/shared/payroll_blocker.rb +27 -0
  1036. data/lib/gusto_embedded/models/shared/payroll_check.rb +39 -0
  1037. data/lib/gusto_embedded/models/shared/payroll_company_taxes_type.rb +30 -0
  1038. data/lib/gusto_embedded/models/shared/payroll_credit_blockers_type.rb +36 -0
  1039. data/lib/gusto_embedded/models/shared/payroll_credit_blockers_type_metadata.rb +20 -0
  1040. data/lib/gusto_embedded/models/shared/payroll_credit_blockers_type_status.rb +20 -0
  1041. data/lib/gusto_embedded/models/shared/payroll_credit_blockers_type_unblock_options.rb +30 -0
  1042. data/lib/gusto_embedded/models/shared/payroll_employee_compensations_type.rb +63 -0
  1043. data/lib/gusto_embedded/models/shared/payroll_employee_compensations_type_paid_time_off.rb +30 -0
  1044. data/lib/gusto_embedded/models/shared/payroll_employee_compensations_type_payment_method.rb +18 -0
  1045. data/lib/gusto_embedded/models/shared/payroll_fixed_compensation_types_type.rb +24 -0
  1046. data/lib/gusto_embedded/models/shared/payroll_minimal.rb +90 -0
  1047. data/lib/gusto_embedded/models/shared/payroll_pay_period_type.rb +30 -0
  1048. data/lib/gusto_embedded/models/shared/payroll_payment_speed_changed_type.rb +36 -0
  1049. data/lib/gusto_embedded/models/shared/payroll_payroll_status_meta_type.rb +39 -0
  1050. data/lib/gusto_embedded/models/shared/payroll_prepared.rb +90 -0
  1051. data/lib/gusto_embedded/models/shared/payroll_processing_request.rb +27 -0
  1052. data/lib/gusto_embedded/models/shared/payroll_processing_request_status.rb +21 -0
  1053. data/lib/gusto_embedded/models/shared/payroll_receipt.rb +63 -0
  1054. data/lib/gusto_embedded/models/shared/payroll_receipt_taxes.rb +27 -0
  1055. data/lib/gusto_embedded/models/shared/payroll_reversal.rb +39 -0
  1056. data/lib/gusto_embedded/models/shared/payroll_submission_blockers_type.rb +36 -0
  1057. data/lib/gusto_embedded/models/shared/payroll_submission_blockers_type_metadata.rb +20 -0
  1058. data/lib/gusto_embedded/models/shared/payroll_submission_blockers_type_status.rb +18 -0
  1059. data/lib/gusto_embedded/models/shared/payroll_totals_type.rb +87 -0
  1060. data/lib/gusto_embedded/models/shared/payroll_type.rb +18 -0
  1061. data/lib/gusto_embedded/models/shared/payroll_withholding_pay_period_type.rb +23 -0
  1062. data/lib/gusto_embedded/models/shared/plaid_status.rb +18 -0
  1063. data/lib/gusto_embedded/models/shared/policy_type.rb +18 -0
  1064. data/lib/gusto_embedded/models/shared/possible_liabilities.rb +30 -0
  1065. data/lib/gusto_embedded/models/shared/post_employee_ytd_benefit_amounts_from_different_company.rb +33 -0
  1066. data/lib/gusto_embedded/models/shared/presidents_day.rb +30 -0
  1067. data/lib/gusto_embedded/models/shared/primary_payroll_admin.rb +33 -0
  1068. data/lib/gusto_embedded/models/shared/primary_signatory.rb +42 -0
  1069. data/lib/gusto_embedded/models/shared/rate_type.rb +21 -0
  1070. data/lib/gusto_embedded/models/shared/recipient_type.rb +19 -0
  1071. data/lib/gusto_embedded/models/shared/recovery_case.rb +51 -0
  1072. data/lib/gusto_embedded/models/shared/recovery_case_status.rb +21 -0
  1073. data/lib/gusto_embedded/models/shared/rehire.rb +45 -0
  1074. data/lib/gusto_embedded/models/shared/rehire_body.rb +36 -0
  1075. data/lib/gusto_embedded/models/shared/rehire_employment_status.rb +22 -0
  1076. data/lib/gusto_embedded/models/shared/report.rb +30 -0
  1077. data/lib/gusto_embedded/models/shared/report_template.rb +33 -0
  1078. data/lib/gusto_embedded/models/shared/required_attributes.rb +27 -0
  1079. data/lib/gusto_embedded/models/shared/requirements.rb +26 -0
  1080. data/lib/gusto_embedded/models/shared/resource_type.rb +17 -0
  1081. data/lib/gusto_embedded/models/shared/resources.rb +33 -0
  1082. data/lib/gusto_embedded/models/shared/schema.rb +33 -0
  1083. data/lib/gusto_embedded/models/shared/section.rb +22 -0
  1084. data/lib/gusto_embedded/models/shared/security.rb +24 -0
  1085. data/lib/gusto_embedded/models/shared/signatory.rb +63 -0
  1086. data/lib/gusto_embedded/models/shared/sort_order.rb +18 -0
  1087. data/lib/gusto_embedded/models/shared/split_by.rb +18 -0
  1088. data/lib/gusto_embedded/models/shared/status.rb +18 -0
  1089. data/lib/gusto_embedded/models/shared/subscription_types.rb +31 -0
  1090. data/lib/gusto_embedded/models/shared/supported_benefit.rb +51 -0
  1091. data/lib/gusto_embedded/models/shared/tax_liabilities_selections.rb +33 -0
  1092. data/lib/gusto_embedded/models/shared/tax_requirement.rb +39 -0
  1093. data/lib/gusto_embedded/models/shared/tax_requirement_metadata.rb +70 -0
  1094. data/lib/gusto_embedded/models/shared/tax_requirement_metadata_options.rb +30 -0
  1095. data/lib/gusto_embedded/models/shared/tax_requirement_metadata_type.rb +34 -0
  1096. data/lib/gusto_embedded/models/shared/tax_requirement_metadata_validation_type.rb +18 -0
  1097. data/lib/gusto_embedded/models/shared/tax_requirement_set.rb +36 -0
  1098. data/lib/gusto_embedded/models/shared/tax_requirements_state.rb +30 -0
  1099. data/lib/gusto_embedded/models/shared/tax_suggestions.rb +27 -0
  1100. data/lib/gusto_embedded/models/shared/taxes.rb +30 -0
  1101. data/lib/gusto_embedded/models/shared/termination.rb +42 -0
  1102. data/lib/gusto_embedded/models/shared/thanksgiving.rb +30 -0
  1103. data/lib/gusto_embedded/models/shared/tier.rb +24 -0
  1104. data/lib/gusto_embedded/models/shared/time_off_activity.rb +45 -0
  1105. data/lib/gusto_embedded/models/shared/time_off_policy.rb +69 -0
  1106. data/lib/gusto_embedded/models/shared/time_off_policy_employees.rb +24 -0
  1107. data/lib/gusto_embedded/models/shared/time_off_type.rb +18 -0
  1108. data/lib/gusto_embedded/models/shared/totals.rb +36 -0
  1109. data/lib/gusto_embedded/models/shared/type.rb +20 -0
  1110. data/lib/gusto_embedded/models/shared/unblock_options.rb +30 -0
  1111. data/lib/gusto_embedded/models/shared/unprocessable_entity_error_object.rb +27 -0
  1112. data/lib/gusto_embedded/models/shared/unprocessed_termination_pay_period.rb +42 -0
  1113. data/lib/gusto_embedded/models/shared/validation.rb +35 -0
  1114. data/lib/gusto_embedded/models/shared/verification_status.rb +23 -0
  1115. data/lib/gusto_embedded/models/shared/verification_type.rb +22 -0
  1116. data/lib/gusto_embedded/models/shared/versionheader.rb +17 -0
  1117. data/lib/gusto_embedded/models/shared/veterans_day.rb +30 -0
  1118. data/lib/gusto_embedded/models/shared/w4_data_type.rb +18 -0
  1119. data/lib/gusto_embedded/models/shared/wage_type.rb +18 -0
  1120. data/lib/gusto_embedded/models/shared/webhook_subscription.rb +33 -0
  1121. data/lib/gusto_embedded/models/shared/webhook_subscription_status.rb +20 -0
  1122. data/lib/gusto_embedded/models/shared/wire_in_request.rb +72 -0
  1123. data/lib/gusto_embedded/models/shared/wire_in_request_status.rb +21 -0
  1124. data/lib/gusto_embedded/models/shared/work_address.rb +24 -0
  1125. data/lib/gusto_embedded/models/shared/ytd_benefit_amounts_from_different_company.rb +33 -0
  1126. data/lib/gusto_embedded/models/shared.rb +330 -0
  1127. data/lib/gusto_embedded/notifications.rb +76 -0
  1128. data/lib/gusto_embedded/paymentconfigs.rb +129 -0
  1129. data/lib/gusto_embedded/payrolls.rb +955 -0
  1130. data/lib/gusto_embedded/payschedules.rb +551 -0
  1131. data/lib/gusto_embedded/recoverycases.rb +118 -0
  1132. data/lib/gusto_embedded/reports.rb +176 -0
  1133. data/lib/gusto_embedded/sdkconfiguration.rb +60 -0
  1134. data/lib/gusto_embedded/signatories.rb +297 -0
  1135. data/lib/gusto_embedded/taxrequirements.rb +216 -0
  1136. data/lib/gusto_embedded/timeoffpolicies.rb +544 -0
  1137. data/lib/gusto_embedded/utils/utils.rb +728 -0
  1138. data/lib/gusto_embedded/webhooks.rb +399 -0
  1139. data/lib/gusto_embedded/wireinrequests.rb +174 -0
  1140. data/lib/gusto_embedded_client.rb +63 -0
  1141. metadata +1324 -0
@@ -0,0 +1,728 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'date'
7
+ require 'sorbet-runtime'
8
+ require 'base64'
9
+
10
+ module GustoEmbedded
11
+ module Utils
12
+ extend T::Sig
13
+
14
+ sig { params(val: Object, primitives: T::Boolean).returns(Object) }
15
+ def self.val_to_string(val, primitives: true)
16
+ if val.is_a? T::Enum
17
+ val.serialize
18
+ elsif val.is_a? DateTime
19
+ val.strftime('%Y-%m-%dT%H:%M:%S.%NZ')
20
+ elsif primitives
21
+ val.to_s
22
+ else
23
+ val
24
+ end
25
+ end
26
+
27
+ sig { params(headers_params: ::Crystalline::FieldAugmented, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(T::Hash[Symbol, String]) }
28
+ def self.get_headers(headers_params, gbls = nil)
29
+ return {} if headers_params.nil?
30
+
31
+ headers = {}
32
+ param_fields = headers_params.fields
33
+ param_fields.each do |f|
34
+ metadata = f.metadata[:header]
35
+ next if metadata.nil?
36
+
37
+ value = _populate_from_globals(f.name, headers_params&.send(f.name), 'header', gbls)
38
+ value = _serialize_header(metadata.fetch(:explode, false), value)
39
+ headers[metadata.fetch(:field_name, f.name)] = value if !value.empty?
40
+ end
41
+ headers
42
+ end
43
+
44
+ sig { params(explode: T::Boolean, obj: Object).returns(String) }
45
+ def self._serialize_header(explode, obj)
46
+ return '' if obj.nil?
47
+
48
+ if obj.respond_to? :fields
49
+ items = []
50
+ obj_fields = obj.fields
51
+ obj_fields.each do |obj_field|
52
+ obj_param_metadata = obj_field.metadata[:header]
53
+ next if obj_param_metadata.nil?
54
+
55
+ obj_field_name = obj_param_metadata.fetch(:field_name, obj_field.name)
56
+ next if obj_field_name == ''
57
+
58
+ val = obj.send(obj_field.name)
59
+ next if val.nil?
60
+
61
+ if explode
62
+ items.append("#{obj_field_name}=#{val_to_string(val)}")
63
+ else
64
+ items.append(obj_field_name)
65
+ items.append(val_to_string(val))
66
+ end
67
+ end
68
+
69
+ items.join(',') if !items.empty?
70
+ elsif obj.is_a? Hash
71
+ items = []
72
+ obj.each do |key, value|
73
+ next if value.nil?
74
+
75
+ if explode
76
+ items.append("#{key}=#{val_to_string(value)}")
77
+ else
78
+ items.append(key)
79
+ items.append(val_to_string(value))
80
+ end
81
+ end
82
+
83
+ items.join(',') if !items.empty?
84
+ elsif obj.is_a? Array
85
+ items = obj.filter { |v| !v.nil? }.map { |v| val_to_string(v) }.join(',')
86
+ else
87
+ val_to_string(obj)
88
+ end
89
+ end
90
+
91
+ sig do
92
+ params(field_name: String, explode: T::Boolean, obj: Object, delimiter: String,
93
+ get_field_name_lambda: T.proc.params(obj_field: ::Crystalline::MetadataFields::Field).returns(String))
94
+ .returns(T::Hash[Symbol, T::Array[String]])
95
+ end
96
+ def self._populate_form(field_name, explode, obj, delimiter, &get_field_name_lambda)
97
+ params = {}
98
+
99
+ return params if obj.nil?
100
+
101
+ if obj.respond_to? :fields
102
+ items = []
103
+ obj_fields = obj.fields
104
+ obj_fields.each do |obj_field|
105
+ obj_field_name = get_field_name_lambda.call(obj_field)
106
+ next if obj_field_name == ''
107
+
108
+ val = obj.send(obj_field.name.to_sym)
109
+ next if val.nil?
110
+
111
+ if explode
112
+ params[obj_field_name] = [val_to_string(val)]
113
+ else
114
+ items.append("#{obj_field_name}#{delimiter}#{val_to_string(val)}")
115
+ end
116
+ end
117
+
118
+ params[field_name] = [items.join(delimiter)] if !items.empty?
119
+ elsif obj.is_a? Hash
120
+ items = []
121
+ obj.each do |key, value|
122
+ next if value.nil?
123
+
124
+ if explode
125
+ params[key] = val_to_string(value)
126
+ else
127
+ items.append("#{key}#{delimiter}#{val_to_string(value)}")
128
+ end
129
+ end
130
+ params[field_name] = [items.join(delimiter)] if !items.empty?
131
+
132
+ elsif obj.is_a? Array
133
+ items = []
134
+ obj.each do |value|
135
+ next if value.nil?
136
+
137
+ if explode
138
+ params[field_name] = [] if !params.key? field_name
139
+
140
+ params[field_name].append(val_to_string(value))
141
+ else
142
+ items.append(val_to_string(value))
143
+ end
144
+ end
145
+ params[field_name] = items.map(&:to_s).join(delimiter) if !items.empty?
146
+
147
+ else
148
+ params[field_name] = val_to_string(obj)
149
+ end
150
+ params
151
+ end
152
+
153
+ sig do
154
+ params(metadata: T::Hash[Symbol, String], field_name: String, obj: Object)
155
+ .returns(T::Hash[Symbol, T::Array[String]])
156
+ end
157
+ def self._get_deep_object_query_params(metadata, field_name, obj)
158
+ params = {}
159
+
160
+ return params if obj.nil?
161
+
162
+ if obj.respond_to? :fields
163
+ obj_fields = obj.fields
164
+ obj_fields.each do |obj_field|
165
+ obj_param_metadata = obj_field.metadata[:query_param]
166
+ next if obj_param_metadata.nil?
167
+
168
+ val = obj.send(obj_field.name)
169
+ next if val.nil?
170
+
171
+ key = "#{metadata.fetch(:field_name, field_name)}[#{obj_param_metadata.fetch(:field_name, obj_field.name)}]"
172
+ if val.is_a? Array
173
+ val.each do |v|
174
+ next if v.nil?
175
+
176
+ params[key] = [] if !params.include? key
177
+
178
+ params[key] << val_to_string(v)
179
+ end
180
+ else
181
+ params[key] = [val_to_string(val)]
182
+ end
183
+ end
184
+ elsif obj.is_a? Hash
185
+ obj.each do |key, value|
186
+ next if value.nil?
187
+
188
+ param_key = "#{metadata.fetch(:field_name, field_name)}[#{key}]"
189
+ if value.is_a? Array
190
+ value.each do |val|
191
+ next if val.nil?
192
+
193
+ params[param_key] = [] if !params.include? param_key
194
+
195
+ params[param_key].append(val_to_string(val))
196
+ end
197
+ else
198
+ params[param_key] = [val_to_string(value)]
199
+ end
200
+ end
201
+ end
202
+ params
203
+ end
204
+
205
+ sig do
206
+ params(metadata: T::Hash[Symbol, String], field_name: String, obj: Object)
207
+ .returns(T::Hash[Symbol, T::Array[String]])
208
+ end
209
+ def self._get_serialized_params(metadata, field_name, obj)
210
+ params = {}
211
+
212
+ serialization = metadata.fetch(:serialization, '')
213
+ params[metadata.fetch(:field_name, field_name)] = obj.to_json if serialization == 'json'
214
+
215
+ params
216
+ end
217
+
218
+ sig do
219
+ params(metadata: T::Hash[Symbol, String], field_name: String, obj: Object, delimiter: String)
220
+ .returns(T::Hash[Symbol, T::Array[String]])
221
+ end
222
+ def self._get_delimited_query_params(metadata, field_name, obj, delimiter)
223
+ get_query_param_field_name = lambda do |obj_field|
224
+ obj_param_metadata = obj_field.metadata[:query_param]
225
+
226
+ return '' if obj_param_metadata.nil?
227
+
228
+ return obj_param_metadata.fetch(:field_name, obj_field.name)
229
+ end
230
+
231
+ _populate_form(field_name, metadata.fetch(:explode, true), obj, delimiter, &get_query_param_field_name)
232
+ end
233
+
234
+ sig { params(clazz: Class, query_params: ::Crystalline::FieldAugmented, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(T::Hash[Symbol, T::Array[String]]) }
235
+ def self.get_query_params(clazz, query_params, gbls = nil)
236
+ params = {}
237
+ param_fields = clazz.fields
238
+ param_fields.each do |f|
239
+ request_metadata = f.metadata[:request]
240
+ next if !request_metadata.nil?
241
+
242
+ metadata = f.metadata[:query_param]
243
+ next if metadata.nil?
244
+
245
+ param_name = f.name
246
+ value = query_params&.send(param_name.to_sym)
247
+ value = _populate_from_globals(param_name, value, 'queryParam', gbls)
248
+
249
+ f_name = metadata[:field_name]
250
+ serialization = metadata.fetch(:serialization, '')
251
+ if serialization != ''
252
+ params = params.merge _get_serialized_params(
253
+ metadata, f_name, value
254
+ )
255
+ else
256
+ style = metadata.fetch(:style, 'form')
257
+ case style
258
+ when 'deepObject'
259
+ params = params.merge _get_deep_object_query_params(
260
+ metadata, f_name, value
261
+ )
262
+ when 'form'
263
+ params = params.merge _get_delimited_query_params(
264
+ metadata, f_name, value, ','
265
+ )
266
+ when 'pipeDelimited'
267
+ params = params.merge _get_delimited_query_params(
268
+ metadata, f_name, value, '|'
269
+ )
270
+ else
271
+ raise StandardError, 'not yet implemented'
272
+ end
273
+ end
274
+ end
275
+ params
276
+ end
277
+
278
+ sig { params(clazz: Class, server_url: String, path: String, path_params: ::Crystalline::FieldAugmented, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(String) }
279
+ def self.generate_url(clazz, server_url, path, path_params, gbls = nil)
280
+ clazz.fields.each do |f|
281
+ param_metadata = f.metadata[:path_param]
282
+ next if param_metadata.nil?
283
+
284
+ if param_metadata.fetch(:style, 'simple') == 'simple'
285
+ param = path_params.send(f.name) if !path_params.nil?
286
+ param = _populate_from_globals(f.name, param, 'pathParam', gbls)
287
+ end
288
+
289
+ f_name = param_metadata.fetch(:field_name, f.name)
290
+ serialization = param_metadata.fetch(:serialization, '')
291
+ if serialization != ''
292
+ serialized_params = _get_serialized_params(param_metadata, f_name, param)
293
+ serialized_params.each do |k, v|
294
+ path = path.sub("{#{k}}", v)
295
+ end
296
+ else
297
+ if param.is_a? Array
298
+ pp_vals = []
299
+ param.each do |pp_val|
300
+ pp_vals.append(pp_val.to_s)
301
+ end
302
+ path = path.sub("{#{param_metadata.fetch(:field_name, f.name)}}", pp_vals.join(','))
303
+ elsif param.is_a? Hash
304
+ pp_vals = []
305
+ param.each do |pp_key, pp_val|
306
+ value = val_to_string(pp_val)
307
+
308
+ if param_metadata.fetch(:explode, false)
309
+ pp_vals.append("#{pp_key}=#{value}")
310
+ else
311
+ pp_vals.append("#{pp_key},#{value}")
312
+ end
313
+ end
314
+ path = path.sub("{#{param_metadata.fetch(:field_name, f.name)}}", pp_vals.join(','))
315
+ elsif !(param.is_a?(String) || param.is_a?(Integer) ||
316
+ param.is_a?(Float) || param.is_a?(Complex) || param.is_a?(TrueClass) ||
317
+ param.is_a?(FalseClass))
318
+ pp_vals = []
319
+ attrs = param.fields.filter { |field| field.name && param.respond_to?(field.name.to_sym) }.map(&:name)
320
+ attrs.each do |attr|
321
+ field = param.field(attr)
322
+
323
+ param_value_metadata = field.metadata[:path_param]
324
+
325
+ next if param_value_metadata.nil?
326
+
327
+ parm_name = param_value_metadata.fetch(:field_name, f.name)
328
+
329
+ param_field_val = param.send(attr)
330
+
331
+ if param_field_val.is_a? T::Enum
332
+ param_field_val = param_field_val.serialize
333
+ elsif param_field_val.is_a? DateTime
334
+ param_field_val = param_field_val.strftime('%Y-%m-%dT%H:%M:%S.%NZ')
335
+ end
336
+ if !field.nil? && T::Utils::Nilable.is_union_with_nilclass(field.type) && param_field_val.nil?
337
+ next
338
+ elsif param_metadata.fetch(:explode, false)
339
+ pp_vals.append("#{parm_name}=#{param_field_val}")
340
+ else
341
+ pp_vals.append("#{parm_name},#{param_field_val}")
342
+ end
343
+ end
344
+ path = path.sub("{#{param_metadata.fetch(:field_name, f.name)}}", pp_vals.join(','))
345
+ else
346
+ path = path.sub("{#{param_metadata.fetch(:field_name, f.name)}}", param.to_s)
347
+ end
348
+ end
349
+ end
350
+
351
+ server_url.delete_suffix('/') + path
352
+ end
353
+
354
+ sig { params(content_type: String, pattern: String).returns(T::Boolean) }
355
+ def self.match_content_type(content_type, pattern)
356
+ return true if content_type == pattern || ['*', '*/*'].include?(pattern)
357
+
358
+ pieces = content_type.split(';')
359
+ pieces.each do |piece|
360
+ return true if pattern == piece.strip
361
+ end
362
+
363
+ false
364
+ end
365
+
366
+ sig { params(req: Faraday::Request, security: Object).void }
367
+ def self.configure_request_security(req, security)
368
+ sec_fields = security.fields
369
+ sec_fields.each do |sec_field|
370
+ value = security.send(sec_field.name)
371
+ next if value.nil?
372
+
373
+ metadata = sec_field.metadata[:security]
374
+ next if metadata.nil?
375
+
376
+ _parse_security_option(req, value) if metadata[:option]
377
+
378
+ if metadata[:scheme]
379
+ # Special case for basic auth which could be a flattened struct
380
+ if metadata[:sub_type] == 'basic' && !value.respond_to?(:fields)
381
+ _parse_security_scheme(req, metadata, security)
382
+ else
383
+ _parse_security_scheme(req, metadata, value)
384
+ end
385
+ end
386
+ end
387
+ end
388
+
389
+ sig { params(req: Faraday::Request, option: Object).void }
390
+ def self._parse_security_option(req, option)
391
+ opt_fields = option.fields
392
+ opt_fields.each do |opt_field|
393
+ metadata = opt_field.metadata[:security]
394
+ next if metadata.nil? || !metadata.include?(:scheme)
395
+
396
+ _parse_security_scheme(req, metadata, option.send(opt_field.name))
397
+ end
398
+ end
399
+
400
+ sig { params(req: Faraday::Request, scheme_metadata: T::Hash[Symbol, String], scheme: Object).void }
401
+ def self._parse_security_scheme(req, scheme_metadata, scheme)
402
+ scheme_type = scheme_metadata[:type]
403
+ sub_type = scheme_metadata[:sub_type]
404
+
405
+ if scheme.respond_to? :fields
406
+ if scheme_type == 'http' && sub_type == 'basic'
407
+ _parse_basic_auth_scheme(req, scheme)
408
+ return
409
+ end
410
+
411
+ scheme_fields = scheme.fields
412
+ scheme_fields.each do |field|
413
+ metadata = field.metadata[:security]
414
+ next if metadata.nil? || metadata[:field_name].nil?
415
+
416
+ value = scheme.send(field.name)
417
+ _parse_security_scheme_value(req, scheme_metadata, metadata, value)
418
+ end
419
+ else
420
+ _parse_security_scheme_value(req, scheme_metadata, scheme_metadata, scheme)
421
+ end
422
+ end
423
+
424
+ sig do
425
+ params(req: Faraday::Request, scheme_metadata: T::Hash[Symbol, String],
426
+ security_metadata: T::Hash[Symbol, String], value: Object).void
427
+ end
428
+ def self._parse_security_scheme_value(req, scheme_metadata, security_metadata, value)
429
+ scheme_type = scheme_metadata[:type]
430
+ sub_type = scheme_metadata[:sub_type]
431
+
432
+ header_name = security_metadata[:field_name]
433
+
434
+ case scheme_type
435
+ when 'apiKey'
436
+ case sub_type
437
+ when 'header'
438
+ req.headers[header_name] = value
439
+ when 'query'
440
+ req.params[header_name] = value
441
+ when 'cookie'
442
+ req.cookies[header_name] = value
443
+ else
444
+ raise StandardError, 'not supported'
445
+ end
446
+ when 'openIdConnect'
447
+ req.headers[header_name] = value.downcase.start_with?('bearer ') ? value : "Bearer #{value}"
448
+ when 'oauth2'
449
+ req.headers[header_name] = value.downcase.start_with?('bearer ') ? value : "Bearer #{value}"
450
+ when 'http'
451
+ if sub_type == 'bearer'
452
+ req.headers[header_name] = value.downcase.start_with?('bearer ') ? value : "Bearer #{value}"
453
+ else
454
+ raise StandardError, 'not supported'
455
+ end
456
+ else
457
+ raise StandardError, 'not supported'
458
+ end
459
+ end
460
+
461
+ sig { params(req: Faraday::Request, scheme: ::Crystalline::FieldAugmented).void }
462
+ def self._parse_basic_auth_scheme(req, scheme)
463
+ username, password = ''
464
+
465
+ scheme_fields = scheme.fields
466
+ scheme_fields.each do |scheme_field|
467
+ metadata = scheme_field.metadata[:security]
468
+ next if metadata.nil? || !metadata.include?(:field_name)
469
+
470
+ field_name = metadata[:field_name]
471
+ value = scheme.send(scheme_field.name)
472
+
473
+ username = value if field_name == 'username'
474
+ password = value if field_name == 'password'
475
+ end
476
+
477
+ data = "#{username}:#{password}".encode
478
+ # Use strict_encode, because encode adds newlines after 60 chars
479
+ # https://docs.ruby-lang.org/en/3.0/Base64.html#method-i-encode64
480
+ req.headers['Authorization'] = "Basic #{Base64.strict_encode64(data)}"
481
+ end
482
+
483
+ sig { params(optional: T::Boolean).returns(T.proc.params(s: String).returns(DateTime)) }
484
+ def self.datetime_from_iso_format(optional)
485
+ lambda do |s|
486
+ return nil if optional && s.nil?
487
+
488
+ return DateTime.strptime(s, '%Y-%m-%dT%H:%M:%S.%NZ')
489
+ end
490
+ end
491
+
492
+ sig { params(optional: T::Boolean).returns(T.proc.params(s: String).returns(Date)) }
493
+ def self.date_from_iso_format(optional)
494
+ lambda do |s|
495
+ return nil if optional && s.nil?
496
+
497
+ return Date.iso8601(s)
498
+ end
499
+ end
500
+
501
+ sig do
502
+ params(enum_type: T.class_of(T::Enum), optional: T::Boolean)
503
+ .returns(T.proc.params(s: String).returns(T::Enum))
504
+ end
505
+ def self.enum_from_string(enum_type, optional)
506
+ lambda do |s|
507
+ return nil if optional && s.nil?
508
+
509
+ return enum_type.deserialize(s)
510
+ end
511
+ end
512
+
513
+ sig { params(name: String).returns(T.proc.returns(String)) }
514
+ def self.field_name(name)
515
+ proc { |_, field_name = name| field_name }
516
+ end
517
+
518
+ SERIALIZATION_METHOD_TO_CONTENT_TYPE = {
519
+ 'json': 'application/json',
520
+ 'form': 'application/x-www-form-urlencoded',
521
+ 'multipart': 'multipart/form-data',
522
+ 'raw': 'application/octet-stream',
523
+ 'string': 'text/plain'
524
+ }.freeze
525
+
526
+ sig do
527
+ params(request: Object, request_field_name: Symbol, serialization_method: Symbol)
528
+ .returns([String, Object, Object])
529
+ end
530
+ def self.serialize_request_body(request, request_field_name, serialization_method)
531
+ return ['', nil, nil] if request.nil?
532
+
533
+ return serialize_content_type(request_field_name, SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method], request) if !request.respond_to?(:fields) || !request.respond_to?(request_field_name)
534
+
535
+ request_val = request.send(request_field_name)
536
+
537
+ request_fields = request.fields
538
+ request_metadata = nil
539
+ request_fields.each do |f|
540
+ if f.name == request_field_name
541
+ request_metadata = f.metadata[:request]
542
+ break
543
+ end
544
+ end
545
+ raise StandardError, 'invalid request type' if request_metadata.nil?
546
+
547
+ serialize_content_type(
548
+ :request, request_metadata.fetch(:media_type, 'application/octet-stream'), request_val
549
+ )
550
+ end
551
+
552
+ sig do
553
+ params(field_name: Symbol, media_type: String, request: Object)
554
+ .returns([String, Object, T.nilable(T::Array[T::Array[Object]])])
555
+ end
556
+ def self.serialize_content_type(field_name, media_type, request)
557
+ return media_type, ::Crystalline.marshal_json_complex(request), nil if media_type.match('(application|text)\/.*?\+*json.*')
558
+ return serialize_multipart_form(media_type, request) if media_type.match('multipart\/.*')
559
+ return media_type, serialize_form_data(field_name, request), nil if media_type.match('application\/x-www-form-urlencoded.*')
560
+ return media_type, request, nil if request.is_a?(String) || request.is_a?(Array)
561
+
562
+ raise StandardError, "invalid request body type #{type(request)} for mediaType {metadata['media_type']}"
563
+ end
564
+
565
+ sig { params(field: ::Crystalline::MetadataFields::Field, data_class: ::Crystalline::FieldAugmented).returns(Object) }
566
+ def self.parse_field(field, data_class)
567
+ field_metadata = field.metadata[:metadata_string]
568
+ return nil if field_metadata.nil?
569
+
570
+ field_value = data_class.send(field.name)
571
+ return nil if field_value.nil?
572
+
573
+ field_value
574
+ end
575
+
576
+ sig { params(media_type: String, request: ::Crystalline::FieldAugmented).returns([String, Object, T::Array[T::Array[Object]]]) }
577
+ def self.serialize_multipart_form(media_type, request)
578
+ form = []
579
+ request_fields = request.fields
580
+ request_fields.each do |field|
581
+ val = request.send(field.name)
582
+ next if val.nil?
583
+
584
+ field_metadata = field.metadata[:multipart_form]
585
+ next if field_metadata.nil?
586
+
587
+ if field_metadata[:file] == true
588
+ file_fields = val.fields
589
+
590
+ file_name = ''
591
+ field_name = field_metadata[:field_name]
592
+ content = nil
593
+
594
+ file_fields.each do |file_field|
595
+ file_metadata = file_field.metadata[:multipart_form]
596
+ next if file_metadata.nil?
597
+
598
+ if file_metadata[:content] == true
599
+ content = val.send(file_field.name)
600
+ else
601
+ file_name = val.send(file_field.name)
602
+ end
603
+ end
604
+ raise StandardError, 'invalid multipart/form-data file' if file_name == '' || content == nil?
605
+
606
+ form.append([field_name, [file_name, content]])
607
+ elsif field_metadata[:json] == true
608
+ to_append = [
609
+ field_metadata.fetch(:field_name, field.name), [
610
+ nil, ::Crystalline.marshal_json_complex(val), 'application/json'
611
+ ]
612
+ ]
613
+ form.append(to_append)
614
+ else
615
+ field_name = field_metadata.fetch(
616
+ :field_name, field.name
617
+ )
618
+ if val.is_a? Array
619
+ val.each do |value|
620
+ next if value.nil?
621
+
622
+ form.append(
623
+ ["#{field_name}[]", [nil, val_to_string(value)]]
624
+ )
625
+ end
626
+ else
627
+ form.append([field_name, [nil, val_to_string(val)]])
628
+ end
629
+ end
630
+ end
631
+ [media_type, nil, form]
632
+ end
633
+
634
+ sig do
635
+ params(form: T::Array[T::Array[T.any(String, T::Array[T.nilable(String)])]])
636
+ .returns(T::Hash[Symbol, Object])
637
+ end
638
+ def self.encode_form(form)
639
+ payload = {}
640
+ form.each do |field_name, field|
641
+ if field.length == 2
642
+ if field[0].nil?
643
+ payload[field_name] = field[1]
644
+ else
645
+ payload[field_name] = Faraday::Multipart::FilePart.new(field[0], '', field[1])
646
+ end
647
+ elsif field.length == 3
648
+ payload[field_name] = Faraday::Multipart::ParamPart.new(field[1].to_json, field[2])
649
+ end
650
+ end
651
+ payload
652
+ end
653
+
654
+ sig do
655
+ params(field_name: Symbol, data: T.any(::Crystalline::FieldAugmented, T::Hash[Symbol, String]))
656
+ .returns(T::Hash[Symbol, Object])
657
+ end
658
+ def self.serialize_form_data(field_name, data)
659
+ get_form_field_name = lambda do |obj_field|
660
+ obj_param_metadata = obj_field.metadata[:form]
661
+
662
+ return '' if obj_param_metadata.nil?
663
+
664
+ return obj_param_metadata.fetch(:field_name, obj_field.name)
665
+ end
666
+
667
+ form = {}
668
+ if data.respond_to? :fields
669
+ data.fields.each do |field|
670
+ val = data.send(field.name)
671
+ next if val.nil?
672
+
673
+ metadata = field.metadata[:form]
674
+
675
+ next if metadata.nil?
676
+
677
+ field_name = metadata.fetch(:field_name, field.name)
678
+
679
+ if metadata[:json]
680
+ form[field_name] = ::Crystalline.marshal_json_complex(val)
681
+ else
682
+ if metadata.fetch(:style, 'form') == 'form'
683
+ form = form.merge(
684
+ _populate_form(
685
+ field_name, metadata.fetch(:explode, true), val, ',', &get_form_field_name
686
+ )
687
+ )
688
+ else
689
+ raise StandardError, "Invalid form style for field #{field.name}"
690
+ end
691
+ end
692
+ end
693
+ elsif data.is_a? Hash
694
+ data.each do |key, value|
695
+ form[key] = [val_to_string(value)]
696
+ end
697
+ else
698
+ raise StandardError, "Invalid request body type for field #{field_name}"
699
+ end
700
+
701
+ form
702
+ end
703
+
704
+ sig { params(url_with_params: String, params: T::Hash[Symbol, String]).returns(String) }
705
+ def self.template_url(url_with_params, params)
706
+ params.each do |key, value|
707
+ if value.respond_to? :serialize
708
+ val_str = value.serialize
709
+ else
710
+ val_str = value
711
+ end
712
+ url_with_params = url_with_params.gsub("{#{key}}", val_str)
713
+ end
714
+
715
+ url_with_params
716
+ end
717
+
718
+ sig { params(param_name: Symbol, value: Object, param_type: String, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(Object) }
719
+ def self._populate_from_globals(param_name, value, param_type, gbls)
720
+ if value.nil? && !gbls.nil?
721
+ global_value = gbls.dig(:parameters, param_type.to_sym, param_name.to_sym)
722
+ value = global_value if !global_value.nil?
723
+ end
724
+ value
725
+ end
726
+
727
+ end
728
+ end