Class: VitableConnect::Models::Employer
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- VitableConnect::Models::Employer
- Defined in:
- lib/vitable_connect/models/employer.rb
Overview
Defined Under Namespace
Classes: Address
Instance Attribute Summary collapse
-
#active ⇒ Boolean
Whether the employer is currently active in the system.
-
#address ⇒ VitableConnect::Models::Employer::Address
Nested address within EmployerSerializer.
-
#created_at ⇒ Time
Timestamp when the employer was created.
-
#email ⇒ String?
Email address for billing and communications.
-
#legal_name ⇒ String
Legal business name for compliance and tax purposes.
-
#name ⇒ String
Display name of the employer.
-
#phone_number ⇒ String?
Employer phone number (E.164 format recommended).
-
#reference_id ⇒ String?
Partner-assigned reference ID for the employer.
-
#updated_at ⇒ Time
Timestamp when the employer was last updated.
Instance Method Summary collapse
-
#initialize(id:, active:, address:, created_at:, ein:, eligibility_policy_id:, legal_name:, name:, organization_id:, updated_at:, email: nil, phone_number: nil, reference_id: nil) ⇒ Object
constructor
Serializer for Employer entity in public API responses.
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:, active:, address:, created_at:, ein:, eligibility_policy_id:, legal_name:, name:, organization_id:, updated_at:, email: nil, phone_number: nil, reference_id: nil) ⇒ Object
Serializer for Employer entity in public API responses.
|
|
# File 'lib/vitable_connect/models/employer.rb', line 87
|
Instance Attribute Details
#active ⇒ Boolean
Whether the employer is currently active in the system
11 |
# File 'lib/vitable_connect/models/employer.rb', line 11 required :active, VitableConnect::Internal::Type::Boolean |
#address ⇒ VitableConnect::Models::Employer::Address
Nested address within EmployerSerializer.
17 |
# File 'lib/vitable_connect/models/employer.rb', line 17 required :address, -> { VitableConnect::Employer::Address } |
#created_at ⇒ Time
Timestamp when the employer was created
23 |
# File 'lib/vitable_connect/models/employer.rb', line 23 required :created_at, Time |
#email ⇒ String?
Email address for billing and communications
47 |
# File 'lib/vitable_connect/models/employer.rb', line 47 optional :email, String, nil?: true |
#legal_name ⇒ String
Legal business name for compliance and tax purposes
29 |
# File 'lib/vitable_connect/models/employer.rb', line 29 required :legal_name, String |
#name ⇒ String
Display name of the employer
35 |
# File 'lib/vitable_connect/models/employer.rb', line 35 required :name, String |
#phone_number ⇒ String?
Employer phone number (E.164 format recommended)
53 |
# File 'lib/vitable_connect/models/employer.rb', line 53 optional :phone_number, String, nil?: true |
#reference_id ⇒ String?
Partner-assigned reference ID for the employer
59 |
# File 'lib/vitable_connect/models/employer.rb', line 59 optional :reference_id, String, nil?: true |
#updated_at ⇒ Time
Timestamp when the employer was last updated
41 |
# File 'lib/vitable_connect/models/employer.rb', line 41 required :updated_at, Time |