Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.29"
".": "0.1.0-alpha.30"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 46
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-bf86910e96e83e583689cf5d1a5c583268754026ec68288994fa6a969dc248f2.yml
openapi_spec_hash: 195038e056891afec204c49dadce3b95
config_hash: 5146b12344dae76238940989dac1e8a0
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-bb50c0ae41ff5036adf72344d33057941f6de67c5fae811eba2e758bfa4ffd31.yml
openapi_spec_hash: 1b21e4bfc46daeef1613e410e5aa8f28
config_hash: 6d3585c0032e08d723d077d660fc8448
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.1.0-alpha.30 (2025-09-08)

Full Changelog: [v0.1.0-alpha.29...v0.1.0-alpha.30](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.29...v0.1.0-alpha.30)

### Features

* **api:** api update ([a67b714](https://github.com/Finch-API/finch-api-ruby/commit/a67b7140a175c5091a52ef82b90860b39a74075f))
* **api:** make client id, client secret optional again ([d1b769f](https://github.com/Finch-API/finch-api-ruby/commit/d1b769f81ce16d27fe940f647c19d6f6e4b1b2b4))

## 0.1.0-alpha.29 (2025-08-24)

Full Changelog: [v0.1.0-alpha.28...v0.1.0-alpha.29](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.28...v0.1.0-alpha.29)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
finch-api (0.1.0.pre.alpha.29)
finch-api (0.1.0.pre.alpha.30)
connection_pool

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "finch-api", "~> 0.1.0.pre.alpha.29"
gem "finch-api", "~> 0.1.0.pre.alpha.30"
```

<!-- x-release-please-end -->
Expand Down
26 changes: 13 additions & 13 deletions lib/finch_api/models/access_token_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,37 @@ class AccessTokenCreateParams < FinchAPI::Internal::Type::BaseModel
extend FinchAPI::Internal::Type::RequestParameters::Converter
include FinchAPI::Internal::Type::RequestParameters

# @!attribute code
# The authorization code received from the authorization server
#
# @return [String]
required :code, String

# @!attribute client_id
# The client ID for your application
#
# @return [String]
required :client_id, String
# @return [String, nil]
optional :client_id, String

# @!attribute client_secret
# The client secret for your application
#
# @return [String]
required :client_secret, String

# @!attribute code
# The authorization code received from the authorization server
#
# @return [String]
required :code, String
# @return [String, nil]
optional :client_secret, String

# @!attribute redirect_uri
# The redirect URI used in the authorization request (optional)
#
# @return [String, nil]
optional :redirect_uri, String

# @!method initialize(client_id:, client_secret:, code:, redirect_uri: nil, request_options: {})
# @!method initialize(code:, client_id: nil, client_secret: nil, redirect_uri: nil, request_options: {})
# @param code [String] The authorization code received from the authorization server
#
# @param client_id [String] The client ID for your application
#
# @param client_secret [String] The client secret for your application
#
# @param code [String] The authorization code received from the authorization server
#
# @param redirect_uri [String] The redirect URI used in the authorization request (optional)
#
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
Expand Down
130 changes: 42 additions & 88 deletions lib/finch_api/models/hris/pay_statement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,31 +176,19 @@ module Type
# @see FinchAPI::Models::HRIS::PayStatement::Earning#attributes
class Attributes < FinchAPI::Internal::Type::BaseModel
# @!attribute metadata
# The metadata to be attached to the entity by existing rules. It is a key-value
# pairs where the values can be of any type (string, number, boolean, object,
# array, etc.).
#
# @return [FinchAPI::Models::HRIS::PayStatement::Earning::Attributes::Metadata]
required :metadata, -> { FinchAPI::HRIS::PayStatement::Earning::Attributes::Metadata }
# @return [Hash{Symbol=>Object, nil}]
required :metadata,
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]

# @!method initialize(metadata:)
# @param metadata [FinchAPI::Models::HRIS::PayStatement::Earning::Attributes::Metadata]

# @see FinchAPI::Models::HRIS::PayStatement::Earning::Attributes#metadata
class Metadata < FinchAPI::Internal::Type::BaseModel
# @!attribute metadata
# The metadata to be attached to the entity by existing rules. It is a key-value
# pairs where the values can be of any type (string, number, boolean, object,
# array, etc.).
#
# @return [Hash{Symbol=>Object, nil}]
required :metadata,
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]

# @!method initialize(metadata:)
# Some parameter documentations has been truncated, see
# {FinchAPI::Models::HRIS::PayStatement::Earning::Attributes::Metadata} for more
# details.
#
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
end
# Some parameter documentations has been truncated, see
# {FinchAPI::Models::HRIS::PayStatement::Earning::Attributes} for more details.
#
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
end
end

Expand Down Expand Up @@ -256,31 +244,20 @@ class EmployeeDeduction < FinchAPI::Internal::Type::BaseModel
# @see FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction#attributes
class Attributes < FinchAPI::Internal::Type::BaseModel
# @!attribute metadata
# The metadata to be attached to the entity by existing rules. It is a key-value
# pairs where the values can be of any type (string, number, boolean, object,
# array, etc.).
#
# @return [FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes::Metadata]
required :metadata, -> { FinchAPI::HRIS::PayStatement::EmployeeDeduction::Attributes::Metadata }
# @return [Hash{Symbol=>Object, nil}]
required :metadata,
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]

# @!method initialize(metadata:)
# @param metadata [FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes::Metadata]

# @see FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes#metadata
class Metadata < FinchAPI::Internal::Type::BaseModel
# @!attribute metadata
# The metadata to be attached to the entity by existing rules. It is a key-value
# pairs where the values can be of any type (string, number, boolean, object,
# array, etc.).
#
# @return [Hash{Symbol=>Object, nil}]
required :metadata,
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]

# @!method initialize(metadata:)
# Some parameter documentations has been truncated, see
# {FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes::Metadata}
# for more details.
#
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
end
# Some parameter documentations has been truncated, see
# {FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes} for more
# details.
#
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
end
end

Expand Down Expand Up @@ -332,31 +309,20 @@ class EmployerContribution < FinchAPI::Internal::Type::BaseModel
# @see FinchAPI::Models::HRIS::PayStatement::EmployerContribution#attributes
class Attributes < FinchAPI::Internal::Type::BaseModel
# @!attribute metadata
# The metadata to be attached to the entity by existing rules. It is a key-value
# pairs where the values can be of any type (string, number, boolean, object,
# array, etc.).
#
# @return [FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes::Metadata]
required :metadata, -> { FinchAPI::HRIS::PayStatement::EmployerContribution::Attributes::Metadata }
# @return [Hash{Symbol=>Object, nil}]
required :metadata,
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]

# @!method initialize(metadata:)
# @param metadata [FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes::Metadata]

# @see FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes#metadata
class Metadata < FinchAPI::Internal::Type::BaseModel
# @!attribute metadata
# The metadata to be attached to the entity by existing rules. It is a key-value
# pairs where the values can be of any type (string, number, boolean, object,
# array, etc.).
#
# @return [Hash{Symbol=>Object, nil}]
required :metadata,
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]

# @!method initialize(metadata:)
# Some parameter documentations has been truncated, see
# {FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes::Metadata}
# for more details.
#
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
end
# Some parameter documentations has been truncated, see
# {FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes} for
# more details.
#
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
end
end

Expand Down Expand Up @@ -441,31 +407,19 @@ module Type
# @see FinchAPI::Models::HRIS::PayStatement::Tax#attributes
class Attributes < FinchAPI::Internal::Type::BaseModel
# @!attribute metadata
# The metadata to be attached to the entity by existing rules. It is a key-value
# pairs where the values can be of any type (string, number, boolean, object,
# array, etc.).
#
# @return [FinchAPI::Models::HRIS::PayStatement::Tax::Attributes::Metadata]
required :metadata, -> { FinchAPI::HRIS::PayStatement::Tax::Attributes::Metadata }
# @return [Hash{Symbol=>Object, nil}]
required :metadata,
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]

# @!method initialize(metadata:)
# @param metadata [FinchAPI::Models::HRIS::PayStatement::Tax::Attributes::Metadata]

# @see FinchAPI::Models::HRIS::PayStatement::Tax::Attributes#metadata
class Metadata < FinchAPI::Internal::Type::BaseModel
# @!attribute metadata
# The metadata to be attached to the entity by existing rules. It is a key-value
# pairs where the values can be of any type (string, number, boolean, object,
# array, etc.).
#
# @return [Hash{Symbol=>Object, nil}]
required :metadata,
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]

# @!method initialize(metadata:)
# Some parameter documentations has been truncated, see
# {FinchAPI::Models::HRIS::PayStatement::Tax::Attributes::Metadata} for more
# details.
#
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
end
# Some parameter documentations has been truncated, see
# {FinchAPI::Models::HRIS::PayStatement::Tax::Attributes} for more details.
#
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
end
end

Expand Down
6 changes: 3 additions & 3 deletions lib/finch_api/resources/access_tokens.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ module Resources
class AccessTokens
# Exchange the authorization code for an access token
#
# @overload create(client_id:, client_secret:, code:, redirect_uri: nil, request_options: {})
# @overload create(code:, client_id: nil, client_secret: nil, redirect_uri: nil, request_options: {})
#
# @param code [String] The authorization code received from the authorization server
#
# @param client_id [String] The client ID for your application
#
# @param client_secret [String] The client secret for your application
#
# @param code [String] The authorization code received from the authorization server
#
# @param redirect_uri [String] The redirect URI used in the authorization request (optional)
#
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
Expand Down
2 changes: 1 addition & 1 deletion lib/finch_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module FinchAPI
VERSION = "0.1.0.pre.alpha.29"
VERSION = "0.1.0.pre.alpha.30"
end
32 changes: 19 additions & 13 deletions rbi/finch_api/models/access_token_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,23 @@ module FinchAPI
T.any(FinchAPI::AccessTokenCreateParams, FinchAPI::Internal::AnyHash)
end

# The client ID for your application
# The authorization code received from the authorization server
sig { returns(String) }
attr_accessor :client_id
attr_accessor :code

# The client ID for your application
sig { returns(T.nilable(String)) }
attr_reader :client_id

sig { params(client_id: String).void }
attr_writer :client_id

# The client secret for your application
sig { returns(String) }
attr_accessor :client_secret
sig { returns(T.nilable(String)) }
attr_reader :client_secret

# The authorization code received from the authorization server
sig { returns(String) }
attr_accessor :code
sig { params(client_secret: String).void }
attr_writer :client_secret

# The redirect URI used in the authorization request (optional)
sig { returns(T.nilable(String)) }
Expand All @@ -32,20 +38,20 @@ module FinchAPI

sig do
params(
code: String,
client_id: String,
client_secret: String,
code: String,
redirect_uri: String,
request_options: FinchAPI::RequestOptions::OrHash
).returns(T.attached_class)
end
def self.new(
# The client ID for your application
client_id:,
# The client secret for your application
client_secret:,
# The authorization code received from the authorization server
code:,
# The client ID for your application
client_id: nil,
# The client secret for your application
client_secret: nil,
# The redirect URI used in the authorization request (optional)
redirect_uri: nil,
request_options: {}
Expand All @@ -55,9 +61,9 @@ module FinchAPI
sig do
override.returns(
{
code: String,
client_id: String,
client_secret: String,
code: String,
redirect_uri: String,
request_options: FinchAPI::RequestOptions
}
Expand Down
Loading