Class: FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/finch_api/models/hris/benefit_create_params.rb

Defined Under Namespace

Modules: Type Classes: Tier

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(match:, threshold:) ⇒ Object

Parameters:

  • match (Integer)
  • threshold (Integer)


61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/finch_api/models/hris/benefit_create_params.rb', line 61

class CompanyContribution < FinchAPI::Internal::Type::BaseModel
  # @!attribute tiers
  #
  #   @return [Array<FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::Tier>]
  required :tiers,
           -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::BenefitCreateParams::CompanyContribution::Tier] }

  # @!attribute type
  #
  #   @return [Symbol, FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::Type]
  required :type, enum: -> { FinchAPI::HRIS::BenefitCreateParams::CompanyContribution::Type }

  # @!method initialize(tiers:, type:)
  #   The company match for this benefit.
  #
  #   @param tiers [Array<FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::Tier>]
  #   @param type [Symbol, FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::Type]

  class Tier < FinchAPI::Internal::Type::BaseModel
    # @!attribute match
    #
    #   @return [Integer]
    required :match, Integer

    # @!attribute threshold
    #
    #   @return [Integer]
    required :threshold, Integer

    # @!method initialize(match:, threshold:)
    #   @param match [Integer]
    #   @param threshold [Integer]
  end

  # @see FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution#type
  module Type
    extend FinchAPI::Internal::Type::Enum

    MATCH = :match

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#tiersArray<FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::Tier>



65
66
# File 'lib/finch_api/models/hris/benefit_create_params.rb', line 65

required :tiers,
-> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::BenefitCreateParams::CompanyContribution::Tier] }

#typeSymbol, FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::Type



71
# File 'lib/finch_api/models/hris/benefit_create_params.rb', line 71

required :type, enum: -> { FinchAPI::HRIS::BenefitCreateParams::CompanyContribution::Type }