Skip to content

Commit e1bd1b5

Browse files
feat(api): api update (#136)
1 parent 52953bd commit e1bd1b5

31 files changed

Lines changed: 567 additions & 590 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-14d375aab89e6b212fe459805a42d6ea7d7da8eae2037ae710a187d06911be1d.yml
3-
openapi_spec_hash: 08b86ecbec3323717d48e4aaee48ed54
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-8c83f0eae70d2a02ed3e2059fc251affdccd2f848f45445e4fed64dfd9ca5985.yml
3+
openapi_spec_hash: 2523952a32436e3c7fd3b55508c2e7ee
44
config_hash: ce10384813f68ba3fed61c7b601b396b

lib/finch_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@
8080
require_relative "finch_api/models/hris/benefit_frequency"
8181
require_relative "finch_api/models/hris/benefit_list_params"
8282
require_relative "finch_api/models/hris/benefit_list_supported_benefits_params"
83+
require_relative "finch_api/models/hris/benefit_list_supported_benefits_response"
8384
require_relative "finch_api/models/hris/benefit_retrieve_params"
84-
require_relative "finch_api/models/hris/benefits/enrolled_individual"
8585
require_relative "finch_api/models/hris/benefits/individual_benefit"
8686
require_relative "finch_api/models/hris/benefits/individual_enrolled_ids_params"
8787
require_relative "finch_api/models/hris/benefits/individual_enrolled_ids_response"
8888
require_relative "finch_api/models/hris/benefits/individual_enroll_many_params"
89+
require_relative "finch_api/models/hris/benefits/individual_enroll_many_response"
8990
require_relative "finch_api/models/hris/benefits/individual_retrieve_many_benefits_params"
9091
require_relative "finch_api/models/hris/benefits/individual_unenroll_many_params"
91-
require_relative "finch_api/models/hris/benefits/unenrolled_individual"
9292
require_relative "finch_api/models/hris/benefits_support"
9393
require_relative "finch_api/models/hris/benefit_type"
9494
require_relative "finch_api/models/hris/benefit_update_params"
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# frozen_string_literal: true
2+
3+
module FinchAPI
4+
module Models
5+
module HRIS
6+
# @see FinchAPI::Resources::HRIS::Benefits#list_supported_benefits
7+
class BenefitListSupportedBenefitsResponse < FinchAPI::Internal::Type::BaseModel
8+
# @!attribute annual_maximum
9+
# Whether the provider supports an annual maximum for this benefit.
10+
#
11+
# @return [Boolean, nil]
12+
optional :annual_maximum, FinchAPI::Internal::Type::Boolean, nil?: true
13+
14+
# @!attribute catch_up
15+
# Whether the provider supports catch up for this benefit. This field will only be
16+
# true for retirement benefits.
17+
#
18+
# @return [Boolean, nil]
19+
optional :catch_up, FinchAPI::Internal::Type::Boolean, nil?: true
20+
21+
# @!attribute company_contribution
22+
# Supported contribution types. An empty array indicates contributions are not
23+
# supported.
24+
#
25+
# @return [Array<Symbol, FinchAPI::Models::HRIS::BenefitListSupportedBenefitsResponse::CompanyContribution, nil>, nil]
26+
optional :company_contribution,
27+
-> { FinchAPI::Internal::Type::ArrayOf[enum: FinchAPI::Models::HRIS::BenefitListSupportedBenefitsResponse::CompanyContribution, nil?: true] },
28+
nil?: true
29+
30+
# @!attribute description
31+
#
32+
# @return [String, nil]
33+
optional :description, String, nil?: true
34+
35+
# @!attribute employee_deduction
36+
# Supported deduction types. An empty array indicates deductions are not
37+
# supported.
38+
#
39+
# @return [Array<Symbol, FinchAPI::Models::HRIS::BenefitListSupportedBenefitsResponse::EmployeeDeduction, nil>, nil]
40+
optional :employee_deduction,
41+
-> { FinchAPI::Internal::Type::ArrayOf[enum: FinchAPI::Models::HRIS::BenefitListSupportedBenefitsResponse::EmployeeDeduction, nil?: true] },
42+
nil?: true
43+
44+
# @!attribute [r] frequencies
45+
# The list of frequencies supported by the provider for this benefit
46+
#
47+
# @return [Array<Symbol, FinchAPI::Models::HRIS::BenefitFrequency, nil>, nil]
48+
optional :frequencies,
49+
-> { FinchAPI::Internal::Type::ArrayOf[enum: FinchAPI::Models::HRIS::BenefitFrequency, nil?: true] }
50+
51+
# @!parse
52+
# # @return [Array<Symbol, FinchAPI::Models::HRIS::BenefitFrequency, nil>]
53+
# attr_writer :frequencies
54+
55+
# @!attribute hsa_contribution_limit
56+
# Whether the provider supports HSA contribution limits. Empty if this feature is
57+
# not supported for the benefit. This array only has values for HSA benefits.
58+
#
59+
# @return [Array<Symbol, FinchAPI::Models::HRIS::BenefitListSupportedBenefitsResponse::HsaContributionLimit, nil>, nil]
60+
optional :hsa_contribution_limit,
61+
-> { FinchAPI::Internal::Type::ArrayOf[enum: FinchAPI::Models::HRIS::BenefitListSupportedBenefitsResponse::HsaContributionLimit, nil?: true] },
62+
nil?: true
63+
64+
# @!parse
65+
# # @param annual_maximum [Boolean, nil]
66+
# # @param catch_up [Boolean, nil]
67+
# # @param company_contribution [Array<Symbol, FinchAPI::Models::HRIS::BenefitListSupportedBenefitsResponse::CompanyContribution, nil>, nil]
68+
# # @param description [String, nil]
69+
# # @param employee_deduction [Array<Symbol, FinchAPI::Models::HRIS::BenefitListSupportedBenefitsResponse::EmployeeDeduction, nil>, nil]
70+
# # @param frequencies [Array<Symbol, FinchAPI::Models::HRIS::BenefitFrequency, nil>]
71+
# # @param hsa_contribution_limit [Array<Symbol, FinchAPI::Models::HRIS::BenefitListSupportedBenefitsResponse::HsaContributionLimit, nil>, nil]
72+
# #
73+
# def initialize(
74+
# annual_maximum: nil,
75+
# catch_up: nil,
76+
# company_contribution: nil,
77+
# description: nil,
78+
# employee_deduction: nil,
79+
# frequencies: nil,
80+
# hsa_contribution_limit: nil,
81+
# **
82+
# )
83+
# super
84+
# end
85+
86+
# def initialize: (Hash | FinchAPI::Internal::Type::BaseModel) -> void
87+
88+
module CompanyContribution
89+
extend FinchAPI::Internal::Type::Enum
90+
91+
FIXED = :fixed
92+
PERCENT = :percent
93+
94+
finalize!
95+
96+
# @!parse
97+
# # @return [Array<Symbol>]
98+
# def self.values; end
99+
end
100+
101+
module EmployeeDeduction
102+
extend FinchAPI::Internal::Type::Enum
103+
104+
FIXED = :fixed
105+
PERCENT = :percent
106+
107+
finalize!
108+
109+
# @!parse
110+
# # @return [Array<Symbol>]
111+
# def self.values; end
112+
end
113+
114+
module HsaContributionLimit
115+
extend FinchAPI::Internal::Type::Enum
116+
117+
INDIVIDUAL = :individual
118+
FAMILY = :family
119+
120+
finalize!
121+
122+
# @!parse
123+
# # @return [Array<Symbol>]
124+
# def self.values; end
125+
end
126+
end
127+
end
128+
end
129+
end

lib/finch_api/models/hris/benefits/enrolled_individual.rb

Lines changed: 0 additions & 97 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# frozen_string_literal: true
2+
3+
module FinchAPI
4+
module Models
5+
module HRIS
6+
module Benefits
7+
# @see FinchAPI::Resources::HRIS::Benefits::Individuals#enroll_many
8+
class IndividualEnrollManyResponse < FinchAPI::Internal::Type::BaseModel
9+
# @!attribute job_id
10+
#
11+
# @return [String]
12+
required :job_id, String
13+
14+
# @!parse
15+
# # @param job_id [String]
16+
# #
17+
# def initialize(job_id:, **) = super
18+
19+
# def initialize: (Hash | FinchAPI::Internal::Type::BaseModel) -> void
20+
end
21+
end
22+
end
23+
end
24+
end

lib/finch_api/models/hris/benefits/unenrolled_individual.rb

Lines changed: 0 additions & 79 deletions
This file was deleted.

lib/finch_api/models/hris/create_company_benefits_response.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ class CreateCompanyBenefitsResponse < FinchAPI::Internal::Type::BaseModel
1111
# @return [String]
1212
required :benefit_id, String
1313

14+
# @!attribute job_id
15+
#
16+
# @return [String]
17+
required :job_id, String
18+
1419
# @!parse
1520
# # @param benefit_id [String]
21+
# # @param job_id [String]
1622
# #
17-
# def initialize(benefit_id:, **) = super
23+
# def initialize(benefit_id:, job_id:, **) = super
1824

1925
# def initialize: (Hash | FinchAPI::Internal::Type::BaseModel) -> void
2026
end

0 commit comments

Comments
 (0)