stackone_client 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stackone/hris.rb +74 -0
  3. data/lib/stackone/models/operations/ats_create_application.rb +2 -2
  4. data/lib/stackone/models/operations/ats_create_candidate.rb +2 -2
  5. data/lib/stackone/models/operations/ats_create_candidate_note.rb +2 -2
  6. data/lib/stackone/models/operations/ats_create_offer.rb +2 -2
  7. data/lib/stackone/models/operations/ats_get_application.rb +4 -14
  8. data/lib/stackone/models/operations/ats_get_application_offer.rb +4 -14
  9. data/lib/stackone/models/operations/ats_get_application_scorecard.rb +4 -14
  10. data/lib/stackone/models/operations/ats_get_candidate.rb +4 -14
  11. data/lib/stackone/models/operations/ats_get_candidate_note.rb +4 -14
  12. data/lib/stackone/models/operations/ats_get_department.rb +4 -14
  13. data/lib/stackone/models/operations/ats_get_interview.rb +4 -14
  14. data/lib/stackone/models/operations/ats_get_interview_stage.rb +4 -14
  15. data/lib/stackone/models/operations/ats_get_job.rb +4 -14
  16. data/lib/stackone/models/operations/ats_get_job_posting.rb +4 -14
  17. data/lib/stackone/models/operations/ats_get_location.rb +4 -14
  18. data/lib/stackone/models/operations/ats_get_offer.rb +4 -14
  19. data/lib/stackone/models/operations/ats_get_rejected_reason.rb +4 -14
  20. data/lib/stackone/models/operations/ats_get_user.rb +4 -14
  21. data/lib/stackone/models/operations/ats_list_application_scorecards.rb +4 -14
  22. data/lib/stackone/models/operations/ats_list_applications.rb +4 -14
  23. data/lib/stackone/models/operations/ats_list_applications_offers.rb +4 -14
  24. data/lib/stackone/models/operations/ats_list_candidate_notes.rb +4 -14
  25. data/lib/stackone/models/operations/ats_list_candidates.rb +4 -14
  26. data/lib/stackone/models/operations/ats_list_departments.rb +4 -14
  27. data/lib/stackone/models/operations/ats_list_interview_stages.rb +4 -14
  28. data/lib/stackone/models/operations/ats_list_interviews.rb +4 -14
  29. data/lib/stackone/models/operations/ats_list_job_postings.rb +4 -14
  30. data/lib/stackone/models/operations/ats_list_jobs.rb +4 -14
  31. data/lib/stackone/models/operations/ats_list_locations.rb +4 -14
  32. data/lib/stackone/models/operations/ats_list_offers.rb +4 -14
  33. data/lib/stackone/models/operations/ats_list_rejected_reasons.rb +4 -14
  34. data/lib/stackone/models/operations/ats_list_users.rb +4 -14
  35. data/lib/stackone/models/operations/ats_update_application.rb +2 -2
  36. data/lib/stackone/models/operations/ats_update_candidate.rb +2 -2
  37. data/lib/stackone/models/operations/crm_create_contact.rb +2 -2
  38. data/lib/stackone/models/operations/crm_get_account.rb +4 -14
  39. data/lib/stackone/models/operations/crm_get_contact.rb +4 -14
  40. data/lib/stackone/models/operations/crm_get_list.rb +4 -14
  41. data/lib/stackone/models/operations/crm_list_accounts.rb +4 -14
  42. data/lib/stackone/models/operations/crm_list_contacts.rb +4 -14
  43. data/lib/stackone/models/operations/crm_list_lists.rb +4 -14
  44. data/lib/stackone/models/operations/crm_update_contact.rb +2 -2
  45. data/lib/stackone/models/operations/hris_create_employee.rb +2 -2
  46. data/lib/stackone/models/operations/hris_create_employee_time_off_request.rb +2 -2
  47. data/lib/stackone/models/operations/hris_create_time_off_request.rb +2 -2
  48. data/lib/stackone/models/operations/hris_get_company.rb +4 -14
  49. data/lib/stackone/models/operations/hris_get_employee.rb +4 -14
  50. data/lib/stackone/models/operations/hris_get_employee_document.rb +81 -0
  51. data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +4 -14
  52. data/lib/stackone/models/operations/hris_get_employment.rb +4 -14
  53. data/lib/stackone/models/operations/hris_get_location.rb +4 -14
  54. data/lib/stackone/models/operations/hris_get_time_off_request.rb +4 -14
  55. data/lib/stackone/models/operations/hris_list_companies.rb +4 -14
  56. data/lib/stackone/models/operations/hris_list_employee_documents.rb +78 -0
  57. data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +4 -14
  58. data/lib/stackone/models/operations/hris_list_employees.rb +4 -14
  59. data/lib/stackone/models/operations/hris_list_employments.rb +4 -14
  60. data/lib/stackone/models/operations/hris_list_locations.rb +4 -14
  61. data/lib/stackone/models/operations/hris_list_time_off_requests.rb +4 -14
  62. data/lib/stackone/models/operations/hris_update_employee.rb +2 -2
  63. data/lib/stackone/models/operations/hris_update_time_off_request.rb +2 -2
  64. data/lib/stackone/models/operations/marketing_create_email_template.rb +2 -2
  65. data/lib/stackone/models/operations/marketing_create_omni_channel_template.rb +2 -2
  66. data/lib/stackone/models/operations/marketing_create_push_template.rb +2 -2
  67. data/lib/stackone/models/operations/marketing_get_campaign.rb +4 -14
  68. data/lib/stackone/models/operations/marketing_get_email_template.rb +4 -14
  69. data/lib/stackone/models/operations/marketing_get_omni_channel_template.rb +4 -14
  70. data/lib/stackone/models/operations/marketing_get_push_template.rb +4 -14
  71. data/lib/stackone/models/operations/marketing_list_campaigns.rb +4 -14
  72. data/lib/stackone/models/operations/marketing_list_email_templates.rb +4 -14
  73. data/lib/stackone/models/operations/marketing_list_omni_channel_templates.rb +4 -14
  74. data/lib/stackone/models/operations/marketing_list_push_templates.rb +4 -14
  75. data/lib/stackone/models/operations/marketing_update_email_template.rb +2 -2
  76. data/lib/stackone/models/operations/marketing_update_omni_channel_template.rb +2 -2
  77. data/lib/stackone/models/operations/marketing_update_push_template.rb +2 -2
  78. data/lib/stackone/models/operations/stackone_authenticate_connect_session.rb +1 -1
  79. data/lib/stackone/models/operations/stackone_create_connect_session.rb +1 -1
  80. data/lib/stackone/models/operations/stackone_delete_account.rb +2 -2
  81. data/lib/stackone/models/operations/stackone_get_account.rb +2 -2
  82. data/lib/stackone/models/operations/stackone_get_account_meta_info.rb +2 -2
  83. data/lib/stackone/models/operations/stackone_get_connector_meta.rb +2 -2
  84. data/lib/stackone/models/operations/stackone_list_connectors_meta.rb +2 -2
  85. data/lib/stackone/models/operations/stackone_list_linked_accounts.rb +2 -2
  86. data/lib/stackone/models/operations/stackone_proxy_request.rb +2 -2
  87. data/lib/stackone/models/operations/stackone_update_account.rb +2 -2
  88. data/lib/stackone/models/shared/account.rb +12 -12
  89. data/lib/stackone/models/shared/accountaddress.rb +14 -14
  90. data/lib/stackone/models/shared/accountresult.rb +3 -3
  91. data/lib/stackone/models/shared/accountspaginated.rb +5 -5
  92. data/lib/stackone/models/shared/answer.rb +7 -7
  93. data/lib/stackone/models/shared/application.rb +18 -18
  94. data/lib/stackone/models/shared/applicationattachment.rb +9 -9
  95. data/lib/stackone/models/shared/applicationcandidate.rb +4 -4
  96. data/lib/stackone/models/shared/applicationresult.rb +3 -3
  97. data/lib/stackone/models/shared/applicationspaginated.rb +5 -5
  98. data/lib/stackone/models/shared/applicationstatusenumapimodel.rb +3 -3
  99. data/lib/stackone/models/shared/atscreateapplicationrequestdto.rb +8 -8
  100. data/lib/stackone/models/shared/atscreatecandidaterequestdto.rb +9 -9
  101. data/lib/stackone/models/shared/atscreatenotesrequestdto.rb +7 -7
  102. data/lib/stackone/models/shared/atscreateofferrequestdto.rb +7 -7
  103. data/lib/stackone/models/shared/atslocation.rb +3 -3
  104. data/lib/stackone/models/shared/atslocationresult.rb +3 -3
  105. data/lib/stackone/models/shared/atslocationspaginated.rb +5 -5
  106. data/lib/stackone/models/shared/atsupdateapplicationrequestdto.rb +9 -9
  107. data/lib/stackone/models/shared/atsupdatecandidatesrequestdto.rb +10 -10
  108. data/lib/stackone/models/shared/attachmenttype.rb +3 -3
  109. data/lib/stackone/models/shared/campaign.rb +21 -21
  110. data/lib/stackone/models/shared/campaignresult.rb +3 -3
  111. data/lib/stackone/models/shared/campaignspaginated.rb +5 -5
  112. data/lib/stackone/models/shared/candidate.rb +15 -15
  113. data/lib/stackone/models/shared/candidateemail.rb +3 -3
  114. data/lib/stackone/models/shared/candidateresult.rb +3 -3
  115. data/lib/stackone/models/shared/candidatespaginated.rb +5 -5
  116. data/lib/stackone/models/shared/channelsenum.rb +3 -3
  117. data/lib/stackone/models/shared/companiespaginated.rb +5 -5
  118. data/lib/stackone/models/shared/company.rb +6 -6
  119. data/lib/stackone/models/shared/companyresult.rb +3 -3
  120. data/lib/stackone/models/shared/compensation.rb +18 -18
  121. data/lib/stackone/models/shared/connectorsmeta.rb +29 -18
  122. data/lib/stackone/models/shared/connectsession.rb +13 -13
  123. data/lib/stackone/models/shared/connectsessionauthenticate.rb +2 -2
  124. data/lib/stackone/models/shared/connectsessioncreate.rb +16 -13
  125. data/lib/stackone/models/shared/connectsessiontoken.rb +14 -14
  126. data/lib/stackone/models/shared/contact.rb +11 -11
  127. data/lib/stackone/models/shared/contactresult.rb +3 -3
  128. data/lib/stackone/models/shared/contactspaginated.rb +5 -5
  129. data/lib/stackone/models/shared/content.rb +28 -0
  130. data/lib/stackone/models/shared/countrycodeenum.rb +3 -3
  131. data/lib/stackone/models/shared/createcandidatenoteresult.rb +4 -4
  132. data/lib/stackone/models/shared/createemployeeresult.rb +4 -4
  133. data/lib/stackone/models/shared/createofferresult.rb +4 -4
  134. data/lib/stackone/models/shared/createresult.rb +4 -4
  135. data/lib/stackone/models/shared/createtemplateresult.rb +4 -4
  136. data/lib/stackone/models/shared/createtimeoffresult.rb +4 -4
  137. data/lib/stackone/models/shared/crmcreatecontactrequestdto.rb +8 -8
  138. data/lib/stackone/models/shared/department.rb +3 -3
  139. data/lib/stackone/models/shared/departmentresult.rb +3 -3
  140. data/lib/stackone/models/shared/departmentspaginated.rb +5 -5
  141. data/lib/stackone/models/shared/documentapimodel.rb +44 -0
  142. data/lib/stackone/models/shared/documentresult.rb +29 -0
  143. data/lib/stackone/models/shared/documentspaginated.rb +34 -0
  144. data/lib/stackone/models/shared/documenttypeenum.rb +40 -0
  145. data/lib/stackone/models/shared/emailmessages.rb +14 -14
  146. data/lib/stackone/models/shared/employee.rb +97 -97
  147. data/lib/stackone/models/shared/employeecustomfields.rb +12 -12
  148. data/lib/stackone/models/shared/employeeresult.rb +3 -3
  149. data/lib/stackone/models/shared/employeespaginated.rb +5 -5
  150. data/lib/stackone/models/shared/employment.rb +25 -25
  151. data/lib/stackone/models/shared/employmentresult.rb +3 -3
  152. data/lib/stackone/models/shared/employmentspaginated.rb +5 -5
  153. data/lib/stackone/models/shared/field.rb +6 -6
  154. data/lib/stackone/models/shared/hiringteam.rb +6 -6
  155. data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +84 -84
  156. data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +13 -13
  157. data/lib/stackone/models/shared/hrislocation.rb +20 -20
  158. data/lib/stackone/models/shared/hrislocationresult.rb +3 -3
  159. data/lib/stackone/models/shared/hrislocationspaginated.rb +5 -5
  160. data/lib/stackone/models/shared/interview.rb +17 -17
  161. data/lib/stackone/models/shared/interviewer.rb +6 -6
  162. data/lib/stackone/models/shared/interviewpart.rb +7 -7
  163. data/lib/stackone/models/shared/interviewspaginated.rb +5 -5
  164. data/lib/stackone/models/shared/interviewsresult.rb +3 -3
  165. data/lib/stackone/models/shared/interviewstage.rb +6 -6
  166. data/lib/stackone/models/shared/interviewstageresult.rb +3 -3
  167. data/lib/stackone/models/shared/interviewstagespaginated.rb +5 -5
  168. data/lib/stackone/models/shared/job.rb +12 -12
  169. data/lib/stackone/models/shared/jobposting.rb +29 -29
  170. data/lib/stackone/models/shared/jobpostingresult.rb +3 -3
  171. data/lib/stackone/models/shared/jobpostingspaginated.rb +5 -5
  172. data/lib/stackone/models/shared/jobresult.rb +3 -3
  173. data/lib/stackone/models/shared/jobspaginated.rb +5 -5
  174. data/lib/stackone/models/shared/jobstatusenum.rb +3 -3
  175. data/lib/stackone/models/shared/linkedaccount.rb +14 -14
  176. data/lib/stackone/models/shared/linkedaccountmeta.rb +5 -15
  177. data/lib/stackone/models/shared/list.rb +10 -10
  178. data/lib/stackone/models/shared/listresult.rb +3 -3
  179. data/lib/stackone/models/shared/listspaginated.rb +5 -5
  180. data/lib/stackone/models/shared/location.rb +3 -3
  181. data/lib/stackone/models/shared/marketingcreateemailtemplaterequestdto.rb +5 -5
  182. data/lib/stackone/models/shared/marketingcreatepushtemplaterequestdto.rb +5 -5
  183. data/lib/stackone/models/shared/marketingcreatetemplaterequestdto.rb +5 -5
  184. data/lib/stackone/models/shared/message.rb +5 -5
  185. data/lib/stackone/models/shared/note.rb +11 -11
  186. data/lib/stackone/models/shared/notecontentapimodel.rb +2 -2
  187. data/lib/stackone/models/shared/noteresult.rb +3 -3
  188. data/lib/stackone/models/shared/notespaginated.rb +5 -5
  189. data/lib/stackone/models/shared/offer.rb +10 -10
  190. data/lib/stackone/models/shared/offerhistory.rb +6 -6
  191. data/lib/stackone/models/shared/offerspaginated.rb +5 -5
  192. data/lib/stackone/models/shared/offersresult.rb +3 -3
  193. data/lib/stackone/models/shared/offerstatusenum.rb +3 -3
  194. data/lib/stackone/models/shared/patchaccountdto.rb +1 -1
  195. data/lib/stackone/models/shared/proxyrequestbody.rb +8 -8
  196. data/lib/stackone/models/shared/pushmessages.rb +10 -10
  197. data/lib/stackone/models/shared/questionnaire.rb +3 -3
  198. data/lib/stackone/models/shared/rawresponse.rb +6 -6
  199. data/lib/stackone/models/shared/rejectedreason.rb +4 -4
  200. data/lib/stackone/models/shared/rejectedreasonresult.rb +3 -3
  201. data/lib/stackone/models/shared/rejectedreasonspaginated.rb +5 -5
  202. data/lib/stackone/models/shared/rejectedreasontypeenum.rb +3 -3
  203. data/lib/stackone/models/shared/resultlink.rb +3 -3
  204. data/lib/stackone/models/shared/scorecard.rb +11 -11
  205. data/lib/stackone/models/shared/scorecardsection.rb +4 -4
  206. data/lib/stackone/models/shared/scorecardspaginated.rb +5 -5
  207. data/lib/stackone/models/shared/security.rb +1 -1
  208. data/lib/stackone/models/shared/sociallink.rb +3 -3
  209. data/lib/stackone/models/shared/template.rb +6 -6
  210. data/lib/stackone/models/shared/templateresult.rb +3 -3
  211. data/lib/stackone/models/shared/templatespaginated.rb +5 -5
  212. data/lib/stackone/models/shared/timeoff.rb +16 -16
  213. data/lib/stackone/models/shared/timeoffpaginated.rb +5 -5
  214. data/lib/stackone/models/shared/timeoffresult.rb +3 -3
  215. data/lib/stackone/models/shared/updateresult.rb +4 -4
  216. data/lib/stackone/models/shared/user.rb +7 -7
  217. data/lib/stackone/models/shared/userresult.rb +3 -3
  218. data/lib/stackone/models/shared/userspaginated.rb +5 -5
  219. data/lib/stackone/sdkconfiguration.rb +5 -5
  220. data/lib/stackone/utils/utils.rb +2 -2
  221. data/lib/stackone_client.rb +228 -221
  222. metadata +14 -7
@@ -9,19 +9,19 @@ require 'faraday'
9
9
  module StackOne
10
10
  module Shared
11
11
 
12
- class Company < StackOne::Utils::FieldAugmented
12
+ class Company < ::StackOne::Utils::FieldAugmented
13
13
  extend T::Sig
14
14
 
15
15
  # The created_at date
16
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
16
+ field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
17
17
 
18
- field :display_name, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('display_name') } }
18
+ field :display_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('display_name') } }
19
19
 
20
- field :id, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('id') } }
20
+ field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
21
21
 
22
- field :name, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('name') } }
22
+ field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
23
23
  # The updated_at date
24
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
24
+ field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
25
25
 
26
26
 
27
27
  sig { params(created_at: T.nilable(DateTime), display_name: T.nilable(String), id: T.nilable(String), name: T.nilable(String), updated_at: T.nilable(DateTime)).void }
@@ -10,13 +10,13 @@ require_relative '../shared/company'
10
10
  module StackOne
11
11
  module Shared
12
12
 
13
- class CompanyResult < StackOne::Utils::FieldAugmented
13
+ class CompanyResult < ::StackOne::Utils::FieldAugmented
14
14
  extend T::Sig
15
15
 
16
16
 
17
- field :data, Shared::Company, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('data') } }
17
+ field :data, Shared::Company, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
18
18
 
19
- field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('raw') } }
19
+ field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
20
20
 
21
21
 
22
22
  sig { params(data: Shared::Company, raw: T.nilable(T::Array[Shared::RawResponse])).void }
@@ -30,13 +30,13 @@ module StackOne
30
30
 
31
31
 
32
32
 
33
- class PayFrequency < StackOne::Utils::FieldAugmented
33
+ class PayFrequency < ::StackOne::Utils::FieldAugmented
34
34
  extend T::Sig
35
35
 
36
36
  # The source value of the pay frequency.
37
- field :source_value, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('source_value') } }
37
+ field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
38
38
  # The pay frequency of the job postings.
39
- field :value, Shared::CompensationValue, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CompensationValue, false) } }
39
+ field :value, Shared::CompensationValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CompensationValue, false) } }
40
40
 
41
41
 
42
42
  sig { params(source_value: String, value: Shared::CompensationValue).void }
@@ -64,13 +64,13 @@ module StackOne
64
64
 
65
65
 
66
66
 
67
- class PayPeriod < StackOne::Utils::FieldAugmented
67
+ class PayPeriod < ::StackOne::Utils::FieldAugmented
68
68
  extend T::Sig
69
69
 
70
70
  # The source value of the pay period.
71
- field :source_value, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('source_value') } }
71
+ field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
72
72
  # The pay period of the job postings.
73
- field :value, Shared::CompensationSchemasValue, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CompensationSchemasValue, false) } }
73
+ field :value, Shared::CompensationSchemasValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CompensationSchemasValue, false) } }
74
74
 
75
75
 
76
76
  sig { params(source_value: String, value: Shared::CompensationSchemasValue).void }
@@ -95,13 +95,13 @@ module StackOne
95
95
 
96
96
 
97
97
 
98
- class CompensationType < StackOne::Utils::FieldAugmented
98
+ class CompensationType < ::StackOne::Utils::FieldAugmented
99
99
  extend T::Sig
100
100
 
101
101
  # The source value of the compensation type.
102
- field :source_value, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('source_value') } }
102
+ field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
103
103
  # The type of the compensation.
104
- field :value, Shared::CompensationSchemasTypeValue, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CompensationSchemasTypeValue, false) } }
104
+ field :value, Shared::CompensationSchemasTypeValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CompensationSchemasTypeValue, false) } }
105
105
 
106
106
 
107
107
  sig { params(source_value: String, value: Shared::CompensationSchemasTypeValue).void }
@@ -112,25 +112,25 @@ module StackOne
112
112
  end
113
113
 
114
114
 
115
- class Compensation < StackOne::Utils::FieldAugmented
115
+ class Compensation < ::StackOne::Utils::FieldAugmented
116
116
  extend T::Sig
117
117
 
118
118
 
119
- field :currency, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('currency') } }
119
+ field :currency, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('currency') } }
120
120
 
121
- field :max_value, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('max_value') } }
121
+ field :max_value, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('max_value') } }
122
122
 
123
- field :min_value, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('min_value') } }
123
+ field :min_value, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('min_value') } }
124
124
 
125
- field :name, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('name') } }
125
+ field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
126
126
 
127
- field :pay_frequency, T.nilable(Shared::PayFrequency), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('pay_frequency') } }
127
+ field :pay_frequency, T.nilable(Shared::PayFrequency), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_frequency') } }
128
128
 
129
- field :pay_period, T.nilable(Shared::PayPeriod), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('pay_period') } }
129
+ field :pay_period, T.nilable(Shared::PayPeriod), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('pay_period') } }
130
130
 
131
- field :type, T.nilable(Shared::CompensationType), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('type') } }
131
+ field :type, T.nilable(Shared::CompensationType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
132
132
 
133
- field :value, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('value') } }
133
+ field :value, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
134
134
 
135
135
 
136
136
  sig { params(currency: T.nilable(String), max_value: T.nilable(String), min_value: T.nilable(String), name: T.nilable(String), pay_frequency: T.nilable(Shared::PayFrequency), pay_period: T.nilable(Shared::PayPeriod), type: T.nilable(Shared::CompensationType), value: T.nilable(String)).void }
@@ -21,51 +21,62 @@ module StackOne
21
21
  end
22
22
 
23
23
 
24
-
25
- class Models < StackOne::Utils::FieldAugmented
24
+ # Image assets for this provider
25
+ class Images < ::StackOne::Utils::FieldAugmented
26
26
  extend T::Sig
27
27
 
28
+ # URL of the square logo designed and used by StackOne for this provider
29
+ field :logo_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('logo_url') } }
30
+ # URL of the original provider logo (with logo and/or name aligned horizontally)
31
+ field :original_logo_horizontal_url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('original_logo_horizontal_url') } }
28
32
 
29
33
 
30
-
31
- def initialize; end
34
+ sig { params(logo_url: T.nilable(String), original_logo_horizontal_url: T.nilable(String)).void }
35
+ def initialize(logo_url: nil, original_logo_horizontal_url: nil)
36
+ @logo_url = logo_url
37
+ @original_logo_horizontal_url = original_logo_horizontal_url
38
+ end
32
39
  end
33
40
 
34
41
  # Resources for this provider, such as image assets
35
- class Resources < StackOne::Utils::FieldAugmented
42
+ class Resources < ::StackOne::Utils::FieldAugmented
36
43
  extend T::Sig
37
44
 
45
+ # Image assets for this provider
46
+ field :images, T.nilable(Shared::Images), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('images') } }
38
47
 
39
48
 
40
-
41
- def initialize; end
49
+ sig { params(images: T.nilable(Shared::Images)).void }
50
+ def initialize(images: nil)
51
+ @images = images
52
+ end
42
53
  end
43
54
 
44
55
 
45
- class ConnectorsMeta < StackOne::Utils::FieldAugmented
56
+ class ConnectorsMeta < ::StackOne::Utils::FieldAugmented
46
57
  extend T::Sig
47
58
 
48
- # Whether this provider has been enabled on the integrations page for the current project
49
- field :active, T::Boolean, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('active') } }
50
59
  # The provider service category
51
- field :category, Shared::Category, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('category'), 'decoder': Utils.enum_from_string(Shared::Category, false) } }
60
+ field :category, Shared::Category, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category'), 'decoder': Utils.enum_from_string(Shared::Category, false) } }
52
61
 
53
- field :models, Shared::Models, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('models') } }
62
+ field :models, T::Hash[Symbol, Object], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('models') } }
54
63
  # The provider key
55
- field :provider, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('provider') } }
64
+ field :provider, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
56
65
  # The provider human-readable label
57
- field :provider_name, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('provider_name') } }
66
+ field :provider_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider_name') } }
67
+ # Whether this provider has been enabled on the integrations page for the current project
68
+ field :active, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('active') } }
58
69
  # Resources for this provider, such as image assets
59
- field :resources, T.nilable(Shared::Resources), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('resources') } }
70
+ field :resources, T.nilable(Shared::Resources), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('resources') } }
60
71
 
61
72
 
62
- sig { params(active: T::Boolean, category: Shared::Category, models: Shared::Models, provider: String, provider_name: String, resources: T.nilable(Shared::Resources)).void }
63
- def initialize(active: nil, category: nil, models: nil, provider: nil, provider_name: nil, resources: nil)
64
- @active = active
73
+ sig { params(category: Shared::Category, models: T::Hash[Symbol, Object], provider: String, provider_name: String, active: T.nilable(T::Boolean), resources: T.nilable(Shared::Resources)).void }
74
+ def initialize(category: nil, models: nil, provider: nil, provider_name: nil, active: nil, resources: nil)
65
75
  @category = category
66
76
  @models = models
67
77
  @provider = provider
68
78
  @provider_name = provider_name
79
+ @active = active
69
80
  @resources = resources
70
81
  end
71
82
  end
@@ -22,34 +22,34 @@ module StackOne
22
22
 
23
23
 
24
24
 
25
- class ConnectSession < StackOne::Utils::FieldAugmented
25
+ class ConnectSession < ::StackOne::Utils::FieldAugmented
26
26
  extend T::Sig
27
27
 
28
28
 
29
- field :created_at, DateTime, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
29
+ field :created_at, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
30
30
 
31
- field :id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('id') } }
31
+ field :id, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
32
32
 
33
- field :organization_id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('organization_id') } }
33
+ field :organization_id, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('organization_id') } }
34
34
 
35
- field :origin_owner_id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('origin_owner_id') } }
35
+ field :origin_owner_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_id') } }
36
36
 
37
- field :origin_owner_name, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('origin_owner_name') } }
37
+ field :origin_owner_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_name') } }
38
38
 
39
- field :project_id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('project_id') } }
39
+ field :project_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } }
40
40
 
41
- field :provider, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('provider') } }
41
+ field :provider, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
42
42
 
43
- field :account_id, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('account_id') } }
43
+ field :account_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } }
44
44
 
45
- field :categories, T.nilable(T::Array[Shared::Categories]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('categories') } }
45
+ field :categories, T.nilable(T::Array[Shared::Categories]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
46
46
 
47
- field :label, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('label') } }
47
+ field :label, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
48
48
 
49
- field :origin_username, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('origin_username') } }
49
+ field :origin_username, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_username') } }
50
50
 
51
51
 
52
- sig { params(created_at: DateTime, id: String, organization_id: String, origin_owner_id: String, origin_owner_name: String, project_id: String, provider: String, account_id: T.nilable(String), categories: T.nilable(T::Array[Shared::Categories]), label: T.nilable(String), origin_username: T.nilable(String)).void }
52
+ sig { params(created_at: DateTime, id: Float, organization_id: Float, origin_owner_id: String, origin_owner_name: String, project_id: String, provider: String, account_id: T.nilable(String), categories: T.nilable(T::Array[Shared::Categories]), label: T.nilable(String), origin_username: T.nilable(String)).void }
53
53
  def initialize(created_at: nil, id: nil, organization_id: nil, origin_owner_id: nil, origin_owner_name: nil, project_id: nil, provider: nil, account_id: nil, categories: nil, label: nil, origin_username: nil)
54
54
  @created_at = created_at
55
55
  @id = id
@@ -9,11 +9,11 @@ require 'faraday'
9
9
  module StackOne
10
10
  module Shared
11
11
 
12
- class ConnectSessionAuthenticate < StackOne::Utils::FieldAugmented
12
+ class ConnectSessionAuthenticate < ::StackOne::Utils::FieldAugmented
13
13
  extend T::Sig
14
14
 
15
15
  # The token to authenticate with
16
- field :token, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('token') } }
16
+ field :token, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('token') } }
17
17
 
18
18
 
19
19
  sig { params(token: String).void }
@@ -22,7 +22,7 @@ module StackOne
22
22
 
23
23
 
24
24
  # The metadata for the connection
25
- class Metadata < StackOne::Utils::FieldAugmented
25
+ class Metadata < ::StackOne::Utils::FieldAugmented
26
26
  extend T::Sig
27
27
 
28
28
 
@@ -32,31 +32,33 @@ module StackOne
32
32
  end
33
33
 
34
34
 
35
- class ConnectSessionCreate < StackOne::Utils::FieldAugmented
35
+ class ConnectSessionCreate < ::StackOne::Utils::FieldAugmented
36
36
  extend T::Sig
37
37
 
38
38
  # The origin owner identifier
39
- field :origin_owner_id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('origin_owner_id') } }
39
+ field :origin_owner_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_id') } }
40
40
  # The origin owner name
41
- field :origin_owner_name, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('origin_owner_name') } }
41
+ field :origin_owner_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_name') } }
42
42
  # The unique identifier for the account associated with this connect session. When this field is present, the hub will launch in edit mode using the retrieved token.
43
- field :account_id, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('account_id') } }
43
+ field :account_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } }
44
44
  # The categories of the provider to connect to
45
- field :categories, T.nilable(T::Array[Shared::ConnectSessionCreateCategories]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('categories') } }
45
+ field :categories, T.nilable(T::Array[Shared::ConnectSessionCreateCategories]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
46
46
  # How long the session should be valid for in seconds
47
- field :expires_in, T.nilable(Float), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('expires_in') } }
47
+ field :expires_in, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('expires_in') } }
48
48
  # The label to be applied to the account associated with this connect session.
49
- field :label, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('label') } }
49
+ field :label, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
50
50
  # The metadata for the connection
51
- field :metadata, T.nilable(Shared::Metadata), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('metadata') } }
51
+ field :metadata, T.nilable(Shared::Metadata), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('metadata') } }
52
+ # If set, this connect session will allow creation of multiple accounts with the same origin owner id and provider. Has no effect if account_id is set.
53
+ field :multiple, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('multiple') } }
52
54
  # The origin username
53
- field :origin_username, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('origin_username') } }
55
+ field :origin_username, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_username') } }
54
56
  # The provider to connect to
55
- field :provider, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('provider') } }
57
+ field :provider, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
56
58
 
57
59
 
58
- sig { params(origin_owner_id: String, origin_owner_name: String, account_id: T.nilable(String), categories: T.nilable(T::Array[Shared::ConnectSessionCreateCategories]), expires_in: T.nilable(Float), label: T.nilable(String), metadata: T.nilable(Shared::Metadata), origin_username: T.nilable(String), provider: T.nilable(String)).void }
59
- def initialize(origin_owner_id: nil, origin_owner_name: nil, account_id: nil, categories: nil, expires_in: nil, label: nil, metadata: nil, origin_username: nil, provider: nil)
60
+ sig { params(origin_owner_id: String, origin_owner_name: String, account_id: T.nilable(String), categories: T.nilable(T::Array[Shared::ConnectSessionCreateCategories]), expires_in: T.nilable(Float), label: T.nilable(String), metadata: T.nilable(Shared::Metadata), multiple: T.nilable(T::Boolean), origin_username: T.nilable(String), provider: T.nilable(String)).void }
61
+ def initialize(origin_owner_id: nil, origin_owner_name: nil, account_id: nil, categories: nil, expires_in: nil, label: nil, metadata: nil, multiple: nil, origin_username: nil, provider: nil)
60
62
  @origin_owner_id = origin_owner_id
61
63
  @origin_owner_name = origin_owner_name
62
64
  @account_id = account_id
@@ -64,6 +66,7 @@ module StackOne
64
66
  @expires_in = expires_in
65
67
  @label = label
66
68
  @metadata = metadata
69
+ @multiple = multiple
67
70
  @origin_username = origin_username
68
71
  @provider = provider
69
72
  end
@@ -22,36 +22,36 @@ module StackOne
22
22
 
23
23
 
24
24
 
25
- class ConnectSessionToken < StackOne::Utils::FieldAugmented
25
+ class ConnectSessionToken < ::StackOne::Utils::FieldAugmented
26
26
  extend T::Sig
27
27
 
28
28
 
29
- field :created_at, DateTime, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
29
+ field :created_at, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
30
30
 
31
- field :id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('id') } }
31
+ field :id, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
32
32
 
33
- field :organization_id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('organization_id') } }
33
+ field :organization_id, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('organization_id') } }
34
34
 
35
- field :origin_owner_id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('origin_owner_id') } }
35
+ field :origin_owner_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_id') } }
36
36
 
37
- field :origin_owner_name, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('origin_owner_name') } }
37
+ field :origin_owner_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_name') } }
38
38
 
39
- field :project_id, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('project_id') } }
39
+ field :project_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } }
40
40
 
41
- field :provider, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('provider') } }
41
+ field :provider, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
42
42
 
43
- field :token, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('token') } }
43
+ field :token, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('token') } }
44
44
 
45
- field :account_id, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('account_id') } }
45
+ field :account_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } }
46
46
 
47
- field :categories, T.nilable(T::Array[Shared::ConnectSessionTokenCategories]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('categories') } }
47
+ field :categories, T.nilable(T::Array[Shared::ConnectSessionTokenCategories]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
48
48
 
49
- field :label, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('label') } }
49
+ field :label, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
50
50
 
51
- field :origin_username, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('origin_username') } }
51
+ field :origin_username, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_username') } }
52
52
 
53
53
 
54
- sig { params(created_at: DateTime, id: String, organization_id: String, origin_owner_id: String, origin_owner_name: String, project_id: String, provider: String, token: String, account_id: T.nilable(String), categories: T.nilable(T::Array[Shared::ConnectSessionTokenCategories]), label: T.nilable(String), origin_username: T.nilable(String)).void }
54
+ sig { params(created_at: DateTime, id: Float, organization_id: Float, origin_owner_id: String, origin_owner_name: String, project_id: String, provider: String, token: String, account_id: T.nilable(String), categories: T.nilable(T::Array[Shared::ConnectSessionTokenCategories]), label: T.nilable(String), origin_username: T.nilable(String)).void }
55
55
  def initialize(created_at: nil, id: nil, organization_id: nil, origin_owner_id: nil, origin_owner_name: nil, project_id: nil, provider: nil, token: nil, account_id: nil, categories: nil, label: nil, origin_username: nil)
56
56
  @created_at = created_at
57
57
  @id = id
@@ -9,29 +9,29 @@ require 'faraday'
9
9
  module StackOne
10
10
  module Shared
11
11
 
12
- class Contact < StackOne::Utils::FieldAugmented
12
+ class Contact < ::StackOne::Utils::FieldAugmented
13
13
  extend T::Sig
14
14
 
15
15
  # List of associated account IDs
16
- field :account_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('account_ids') } }
16
+ field :account_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_ids') } }
17
17
  # The contact company name
18
- field :company_name, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('company_name') } }
18
+ field :company_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('company_name') } }
19
19
  # Timestamp when the contact was created
20
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
20
+ field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
21
21
  # List of associated deal IDs
22
- field :deal_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('deal_ids') } }
22
+ field :deal_ids, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('deal_ids') } }
23
23
  # List of contact email addresses
24
- field :emails, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('emails') } }
24
+ field :emails, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('emails') } }
25
25
  # The contact first name
26
- field :first_name, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('first_name') } }
26
+ field :first_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('first_name') } }
27
27
  # The contact ID
28
- field :id, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('id') } }
28
+ field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
29
29
  # The contact last name
30
- field :last_name, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('last_name') } }
30
+ field :last_name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('last_name') } }
31
31
  # List of contact phone numbers
32
- field :phone_numbers, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('phone_numbers') } }
32
+ field :phone_numbers, T.nilable(T::Array[String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('phone_numbers') } }
33
33
  # Timestamp when the contact was last updated
34
- field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
34
+ field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
35
35
 
36
36
 
37
37
  sig { params(account_ids: T.nilable(T::Array[String]), company_name: T.nilable(String), created_at: T.nilable(DateTime), deal_ids: T.nilable(T::Array[String]), emails: T.nilable(T::Array[String]), first_name: T.nilable(String), id: T.nilable(String), last_name: T.nilable(String), phone_numbers: T.nilable(T::Array[String]), updated_at: T.nilable(DateTime)).void }
@@ -10,13 +10,13 @@ require_relative '../shared/contact'
10
10
  module StackOne
11
11
  module Shared
12
12
 
13
- class ContactResult < StackOne::Utils::FieldAugmented
13
+ class ContactResult < ::StackOne::Utils::FieldAugmented
14
14
  extend T::Sig
15
15
 
16
16
 
17
- field :data, Shared::Contact, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('data') } }
17
+ field :data, Shared::Contact, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
18
18
 
19
- field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('raw') } }
19
+ field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
20
20
 
21
21
 
22
22
  sig { params(data: Shared::Contact, raw: T.nilable(T::Array[Shared::RawResponse])).void }
@@ -9,17 +9,17 @@ require 'faraday'
9
9
  module StackOne
10
10
  module Shared
11
11
 
12
- class ContactsPaginated < StackOne::Utils::FieldAugmented
12
+ class ContactsPaginated < ::StackOne::Utils::FieldAugmented
13
13
  extend T::Sig
14
14
 
15
15
 
16
- field :data, T::Array[Shared::Contact], { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('data') } }
16
+ field :data, T::Array[Shared::Contact], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
17
17
 
18
- field :next_, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('next') } }
18
+ field :next_, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
19
19
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
20
- field :next_page, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('next_page') } }
20
+ field :next_page, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next_page') } }
21
21
 
22
- field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('raw') } }
22
+ field :raw, T.nilable(T::Array[Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
23
23
 
24
24
 
25
25
  sig { params(data: T::Array[Shared::Contact], next_: T.nilable(String), next_page: T.nilable(String), raw: T.nilable(T::Array[Shared::RawResponse])).void }
@@ -0,0 +1,28 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+
9
+ module StackOne
10
+ module Shared
11
+
12
+ class Content < ::StackOne::Utils::FieldAugmented
13
+ extend T::Sig
14
+
15
+
16
+ field :html, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('html') } }
17
+
18
+ field :plain, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('plain') } }
19
+
20
+
21
+ sig { params(html: T.nilable(String), plain: T.nilable(String)).void }
22
+ def initialize(html: nil, plain: nil)
23
+ @html = html
24
+ @plain = plain
25
+ end
26
+ end
27
+ end
28
+ end
@@ -265,13 +265,13 @@ module StackOne
265
265
 
266
266
 
267
267
 
268
- class CountryCodeEnum < StackOne::Utils::FieldAugmented
268
+ class CountryCodeEnum < ::StackOne::Utils::FieldAugmented
269
269
  extend T::Sig
270
270
 
271
271
  # The name of citizenship
272
- field :source_value, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('source_value') } }
272
+ field :source_value, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
273
273
  # The ISO3166-1 Alpha2 Code of the Country
274
- field :value, Shared::CountryCodeEnumValue, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CountryCodeEnumValue, false) } }
274
+ field :value, Shared::CountryCodeEnumValue, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Shared::CountryCodeEnumValue, false) } }
275
275
 
276
276
 
277
277
  sig { params(source_value: String, value: Shared::CountryCodeEnumValue).void }
@@ -9,15 +9,15 @@ require 'faraday'
9
9
  module StackOne
10
10
  module Shared
11
11
 
12
- class CreateCandidateNoteResult < StackOne::Utils::FieldAugmented
12
+ class CreateCandidateNoteResult < ::StackOne::Utils::FieldAugmented
13
13
  extend T::Sig
14
14
 
15
15
 
16
- field :message, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('message') } }
16
+ field :message, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message') } }
17
17
 
18
- field :status_code, Float, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('statusCode') } }
18
+ field :status_code, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('statusCode') } }
19
19
 
20
- field :timestamp, DateTime, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(false) } }
20
+ field :timestamp, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(false) } }
21
21
 
22
22
 
23
23
  sig { params(message: String, status_code: Float, timestamp: DateTime).void }
@@ -9,15 +9,15 @@ require 'faraday'
9
9
  module StackOne
10
10
  module Shared
11
11
 
12
- class CreateEmployeeResult < StackOne::Utils::FieldAugmented
12
+ class CreateEmployeeResult < ::StackOne::Utils::FieldAugmented
13
13
  extend T::Sig
14
14
 
15
15
 
16
- field :message, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('message') } }
16
+ field :message, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message') } }
17
17
 
18
- field :status_code, Float, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('statusCode') } }
18
+ field :status_code, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('statusCode') } }
19
19
 
20
- field :timestamp, DateTime, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(false) } }
20
+ field :timestamp, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(false) } }
21
21
 
22
22
 
23
23
  sig { params(message: String, status_code: Float, timestamp: DateTime).void }
@@ -9,15 +9,15 @@ require 'faraday'
9
9
  module StackOne
10
10
  module Shared
11
11
 
12
- class CreateOfferResult < StackOne::Utils::FieldAugmented
12
+ class CreateOfferResult < ::StackOne::Utils::FieldAugmented
13
13
  extend T::Sig
14
14
 
15
15
 
16
- field :message, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('message') } }
16
+ field :message, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message') } }
17
17
 
18
- field :status_code, Float, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('statusCode') } }
18
+ field :status_code, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('statusCode') } }
19
19
 
20
- field :timestamp, DateTime, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(false) } }
20
+ field :timestamp, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(false) } }
21
21
 
22
22
 
23
23
  sig { params(message: String, status_code: Float, timestamp: DateTime).void }