Class: VitableConnect::Models::Enrollment::Benefit

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

Overview

See Also:

  • VitableConnect::Models::Enrollment#benefit

Defined Under Namespace

Modules: Category, ProductCode

Instance Attribute Summary collapse

Class Method 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(id:, category:, name:, product_code:) ⇒ Object

Some parameter documentations has been truncated, see VitableConnect::Models::Enrollment::Benefit for more details.

Nested benefit product summary

Parameters:



# File 'lib/vitable_connect/models/enrollment.rb', line 160

Instance Attribute Details

#categorySymbol, VitableConnect::Models::Enrollment::Benefit::Category

  • Medical - Medical
  • Dental - Dental
  • Vision - Vision
  • Hospital - Hospital

Parameters:

  • value (VitableConnect::Models::Enrollment::Benefit::category)

Returns:



132
# File 'lib/vitable_connect/models/enrollment.rb', line 132

required :category, enum: -> { VitableConnect::Enrollment::Benefit::Category }

#idString

Benefit product ID (bprd_*)

Parameters:

  • value (String)

Returns:

  • (String)


123
# File 'lib/vitable_connect/models/enrollment.rb', line 123

required :id, String

#nameString

Display name of the benefit product

Parameters:

  • value (String)

Returns:

  • (String)


138
# File 'lib/vitable_connect/models/enrollment.rb', line 138

required :name, String

#product_codeSymbol, VitableConnect::Models::Enrollment::Benefit::ProductCode

  • EBA - Eba Mec
  • VPC - Vpc Enhanced
  • VPC_CORE - Vpc Core
  • MEC - Vpc Mec
  • MEC2 - Mec2
  • MEC_PLUS - Mec Plus
  • MVP - Mvp
  • MVP2 - Mvp2
  • MVPSL - Mvpsl
  • MVPSL2 - Mvpsl2
  • VD - Dental
  • VV - Vision
  • ICHRA - Ichra
  • ICHRA_PREMIUM_PLUS - Ichra Premium Plus
  • ICHRA_REIMBURSEMENT_ONLY - Ichra Reimbursement Only

Parameters:

  • value (VitableConnect::Models::Enrollment::Benefit::product_code)

Returns:



158
# File 'lib/vitable_connect/models/enrollment.rb', line 158

required :product_code, enum: -> { VitableConnect::Enrollment::Benefit::ProductCode }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/vitable_connect/models/enrollment.rb', line 188

Instance Method Details

#to_hash{

Returns:

  • ({)


103
# File 'sig/vitable_connect/models/enrollment.rbs', line 103

def to_hash: -> {