Class: VitableConnect::Models::EmployerRetrieveBenefitPlanYearResponse::Data::ContributionStrategy::ContributionTier

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/vitable_connect/models/employer_retrieve_benefit_plan_year_response.rb,
sig/vitable_connect/models/employer_retrieve_benefit_plan_year_response.rbs

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(contribution_tiers:, ichra_contribution_classes:) ⇒ Object

How the plan year prices contributions: exactly one collection is populated, determined by the plan year's family (ICHRA vs tier-priced).

Parameters:



253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
# File 'lib/vitable_connect/models/employer_retrieve_benefit_plan_year_response.rb', line 253

class ContributionTier < VitableConnect::Internal::Type::BaseModel
  # @!attribute benefit_plan_id
  #   Prefixed benefit-plan identifier (`bpln_*`).
  #
  #   @return [String]
  required :benefit_plan_id, String

  # @!attribute benefit_plan_name
  #   Benefit plan name.
  #
  #   @return [String]
  required :benefit_plan_name, String

  # @!attribute benefit_plan_tier_name
  #   Coverage-tier name.
  #
  #   @return [String]
  required :benefit_plan_tier_name, String

  # @!attribute cost
  #   Monthly employee deduction in cents.
  #
  #   @return [Integer]
  required :cost, Integer

  # @!attribute cost_per_dependent
  #   Monthly employee deduction per dependent, in cents.
  #
  #   @return [Integer]
  required :cost_per_dependent, Integer

  # @!attribute dependents_required_in
  #   Whether dependents are required for this tier.
  #
  #   @return [Boolean]
  required :dependents_required_in, VitableConnect::Internal::Type::Boolean

  # @!attribute spouse_required_in
  #   Whether a spouse is required for this tier.
  #
  #   @return [Boolean]
  required :spouse_required_in, VitableConnect::Internal::Type::Boolean

  # @!method initialize(benefit_plan_id:, benefit_plan_name:, benefit_plan_tier_name:, cost:, cost_per_dependent:, dependents_required_in:, spouse_required_in:)
  #   One non-ICHRA coverage tier, mirroring the internal configuration
  #   `CompanyBenefitPlanTierCostDTO` minus the tier-cost id, `pepm` and
  #   `pepm_per_dependent`; `benefit_plan_id` is the prefixed `bpln_*` form rather
  #   than a raw UUID.
  #
  #   @param benefit_plan_id [String] Prefixed benefit-plan identifier (`bpln_*`).
  #
  #   @param benefit_plan_name [String] Benefit plan name.
  #
  #   @param benefit_plan_tier_name [String] Coverage-tier name.
  #
  #   @param cost [Integer] Monthly employee deduction in cents.
  #
  #   @param cost_per_dependent [Integer] Monthly employee deduction per dependent, in cents.
  #
  #   @param dependents_required_in [Boolean] Whether dependents are required for this tier.
  #
  #   @param spouse_required_in [Boolean] Whether a spouse is required for this tier.
end

Instance Attribute Details

#benefit_plan_idString

Prefixed benefit-plan identifier (bpln_*).

Parameters:

  • value (String)

Returns:

  • (String)


258
# File 'lib/vitable_connect/models/employer_retrieve_benefit_plan_year_response.rb', line 258

required :benefit_plan_id, String

#benefit_plan_nameString

Benefit plan name.

Parameters:

  • value (String)

Returns:

  • (String)


264
# File 'lib/vitable_connect/models/employer_retrieve_benefit_plan_year_response.rb', line 264

required :benefit_plan_name, String

#benefit_plan_tier_nameString

Coverage-tier name.

Parameters:

  • value (String)

Returns:

  • (String)


270
# File 'lib/vitable_connect/models/employer_retrieve_benefit_plan_year_response.rb', line 270

required :benefit_plan_tier_name, String

#costInteger

Monthly employee deduction in cents.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


276
# File 'lib/vitable_connect/models/employer_retrieve_benefit_plan_year_response.rb', line 276

required :cost, Integer

#cost_per_dependentInteger

Monthly employee deduction per dependent, in cents.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


282
# File 'lib/vitable_connect/models/employer_retrieve_benefit_plan_year_response.rb', line 282

required :cost_per_dependent, Integer

#dependents_required_inBoolean

Whether dependents are required for this tier.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


288
# File 'lib/vitable_connect/models/employer_retrieve_benefit_plan_year_response.rb', line 288

required :dependents_required_in, VitableConnect::Internal::Type::Boolean

#spouse_required_inBoolean

Whether a spouse is required for this tier.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


294
# File 'lib/vitable_connect/models/employer_retrieve_benefit_plan_year_response.rb', line 294

required :spouse_required_in, VitableConnect::Internal::Type::Boolean

Instance Method Details

#to_hash{

Returns:

  • ({)


187
# File 'sig/vitable_connect/models/employer_retrieve_benefit_plan_year_response.rbs', line 187

def to_hash: -> {