Skip to content

Commit bdab477

Browse files
feat(api): api update
1 parent e527e5d commit bdab477

File tree

11 files changed

+977
-752
lines changed

11 files changed

+977
-752
lines changed

.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-e5ab676f0996530fe4c702d8cbb88862ab8382792d01197a9576e06f5a359d00.yml
3-
openapi_spec_hash: 5c0dec3d2e1fea26d5f99560b226aedd
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-9810fd8ae1eed14c34c83de1ac110dbfb8cc23d2ac930b641cb0ad40f327ecb8.yml
3+
openapi_spec_hash: e0d44a94626fd6208a0d585ce93d7e89
44
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6

lib/finch_api/models/hris/employment_data.rb

Lines changed: 324 additions & 257 deletions
Large diffs are not rendered by default.

lib/finch_api/models/hris/employment_data_response.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ module HRIS
77
class EmploymentDataResponse < FinchAPI::Internal::Type::BaseModel
88
# @!attribute body
99
#
10-
# @return [FinchAPI::Models::HRIS::EmploymentData, nil]
11-
optional :body, -> { FinchAPI::Models::HRIS::EmploymentData }
10+
# @return [FinchAPI::Models::HRIS::EmploymentData::UnionMember0, FinchAPI::Models::HRIS::EmploymentData::BatchError]
11+
required :body, union: -> { FinchAPI::Models::HRIS::EmploymentData }
1212

1313
# @!attribute code
1414
#
15-
# @return [Integer, nil]
16-
optional :code, Integer
15+
# @return [Integer]
16+
required :code, Integer
1717

1818
# @!attribute individual_id
1919
# A stable Finch `id` (UUID v4) for an individual in the company.
2020
#
21-
# @return [String, nil]
22-
optional :individual_id, String
21+
# @return [String]
22+
required :individual_id, String
2323

24-
# @!method initialize(body: nil, code: nil, individual_id: nil)
25-
# @param body [FinchAPI::Models::HRIS::EmploymentData]
24+
# @!method initialize(body:, code:, individual_id:)
25+
# @param body [FinchAPI::Models::HRIS::EmploymentData::UnionMember0, FinchAPI::Models::HRIS::EmploymentData::BatchError]
2626
#
2727
# @param code [Integer]
2828
#

lib/finch_api/models/income.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@ class Income < FinchAPI::Internal::Type::BaseModel
77
# The income amount in cents.
88
#
99
# @return [Integer, nil]
10-
optional :amount, Integer, nil?: true
10+
required :amount, Integer, nil?: true
1111

1212
# @!attribute currency
1313
# The currency code.
1414
#
1515
# @return [String, nil]
16-
optional :currency, String, nil?: true
16+
required :currency, String, nil?: true
1717

1818
# @!attribute effective_date
1919
# The date the income amount went into effect.
2020
#
2121
# @return [String, nil]
22-
optional :effective_date, String, nil?: true
22+
required :effective_date, String, nil?: true
2323

2424
# @!attribute unit
2525
# The income unit of payment. Options: `yearly`, `quarterly`, `monthly`,
2626
# `semi_monthly`, `bi_weekly`, `weekly`, `daily`, `hourly`, and `fixed`.
2727
#
2828
# @return [Symbol, FinchAPI::Models::Income::Unit, nil]
29-
optional :unit, enum: -> { FinchAPI::Models::Income::Unit }, nil?: true
29+
required :unit, enum: -> { FinchAPI::Models::Income::Unit }, nil?: true
3030

31-
# @!method initialize(amount: nil, currency: nil, effective_date: nil, unit: nil)
31+
# @!method initialize(amount:, currency:, effective_date:, unit:)
3232
# Some parameter documentations has been truncated, see {FinchAPI::Models::Income}
3333
# for more details.
3434
#

0 commit comments

Comments
 (0)