Skip to content

Commit 4295175

Browse files
chore: rename confusing Type::BooleanModel to Type::Boolean (#120)
1 parent a67519c commit 4295175

26 files changed

+275
-275
lines changed

lib/finch_api/internal/type/boolean_model.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Type
88
# @abstract
99
#
1010
# Ruby has no Boolean class; this is something for models to refer to.
11-
class BooleanModel
11+
class Boolean
1212
extend FinchAPI::Internal::Type::Converter
1313

1414
# @param other [Object]
@@ -19,7 +19,7 @@ def self.===(other) = other == true || other == false
1919
# @param other [Object]
2020
#
2121
# @return [Boolean]
22-
def self.==(other) = other.is_a?(Class) && other <= FinchAPI::Internal::Type::BooleanModel
22+
def self.==(other) = other.is_a?(Class) && other <= FinchAPI::Internal::Type::Boolean
2323

2424
class << self
2525
# @api private

lib/finch_api/internal/type/converter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def type_info(spec)
6464
in Hash
6565
type_info(spec.slice(:const, :enum, :union).first&.last)
6666
in true | false
67-
-> { FinchAPI::Internal::Type::BooleanModel }
67+
-> { FinchAPI::Internal::Type::Boolean }
6868
in FinchAPI::Internal::Type::Converter | Class | Symbol
6969
-> { spec }
7070
in NilClass | Integer | Float

lib/finch_api/models/account_update_event.rb

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

lib/finch_api/models/connect/session_new_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class SessionNewParams < FinchAPI::Internal::Type::BaseModel
3838
# @!attribute manual
3939
#
4040
# @return [Boolean, nil]
41-
optional :manual, FinchAPI::Internal::Type::BooleanModel, nil?: true
41+
optional :manual, FinchAPI::Internal::Type::Boolean, nil?: true
4242

4343
# @!attribute minutes_to_expire
4444
# The number of minutes until the session expires (defaults to 43,200, which is 30

lib/finch_api/models/hris/benefit_features_and_operations.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ class SupportedFeatures < FinchAPI::Internal::Type::BaseModel
3737
# Whether the provider supports an annual maximum for this benefit.
3838
#
3939
# @return [Boolean, nil]
40-
optional :annual_maximum, FinchAPI::Internal::Type::BooleanModel, nil?: true
40+
optional :annual_maximum, FinchAPI::Internal::Type::Boolean, nil?: true
4141

4242
# @!attribute catch_up
4343
# Whether the provider supports catch up for this benefit. This field will only be
4444
# true for retirement benefits.
4545
#
4646
# @return [Boolean, nil]
47-
optional :catch_up, FinchAPI::Internal::Type::BooleanModel, nil?: true
47+
optional :catch_up, FinchAPI::Internal::Type::Boolean, nil?: true
4848

4949
# @!attribute company_contribution
5050
# Supported contribution types. An empty array indicates contributions are not

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Body < FinchAPI::Internal::Type::BaseModel
5555
# for this individual.
5656
#
5757
# @return [Boolean, nil]
58-
optional :catch_up, FinchAPI::Internal::Type::BooleanModel, nil?: true
58+
optional :catch_up, FinchAPI::Internal::Type::Boolean, nil?: true
5959

6060
# @!attribute company_contribution
6161
#

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Configuration < FinchAPI::Internal::Type::BaseModel
8282
# For retirement benefits only - whether catch up contributions are enabled
8383
#
8484
# @return [Boolean, nil]
85-
optional :catch_up, FinchAPI::Internal::Type::BooleanModel
85+
optional :catch_up, FinchAPI::Internal::Type::Boolean
8686

8787
# @!parse
8888
# # @return [Boolean]

lib/finch_api/models/hris/company/pay_statement_item_list_response.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Attributes < FinchAPI::Internal::Type::BaseModel
5252
# taxes.
5353
#
5454
# @return [Boolean, nil]
55-
optional :employer, FinchAPI::Internal::Type::BooleanModel, nil?: true
55+
optional :employer, FinchAPI::Internal::Type::Boolean, nil?: true
5656

5757
# @!attribute metadata
5858
# The metadata of the pay statement item derived by the rules engine if available.
@@ -66,7 +66,7 @@ class Attributes < FinchAPI::Internal::Type::BaseModel
6666
# employee deductions.
6767
#
6868
# @return [Boolean, nil]
69-
optional :pre_tax, FinchAPI::Internal::Type::BooleanModel, nil?: true
69+
optional :pre_tax, FinchAPI::Internal::Type::Boolean, nil?: true
7070

7171
# @!attribute type
7272
# The type of the pay statement item.

lib/finch_api/models/hris/employment_data.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class EmploymentData < FinchAPI::Internal::Type::BaseModel
8181
# `true` if the individual an an active employee or contractor at the company.
8282
#
8383
# @return [Boolean, nil]
84-
optional :is_active, FinchAPI::Internal::Type::BooleanModel, nil?: true
84+
optional :is_active, FinchAPI::Internal::Type::Boolean, nil?: true
8585

8686
# @!attribute last_name
8787
# The legal last name of the individual.

lib/finch_api/models/hris/individual_in_directory.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class IndividualInDirectory < FinchAPI::Internal::Type::BaseModel
3131
# `true` if the individual is an active employee or contractor at the company.
3232
#
3333
# @return [Boolean, nil]
34-
optional :is_active, FinchAPI::Internal::Type::BooleanModel, nil?: true
34+
optional :is_active, FinchAPI::Internal::Type::Boolean, nil?: true
3535

3636
# @!attribute last_name
3737
# The legal last name of the individual.

0 commit comments

Comments
 (0)