index int64 0 0 | repo_id stringclasses 829
values | file_path stringlengths 34 254 | content stringlengths 6 5.38M |
|---|---|---|---|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/saved_claim/higher_level_review.rb | # frozen_string_literal: true
class SavedClaim::HigherLevelReview < SavedClaim
has_one :appeal_submission, class_name: 'AppealSubmission', foreign_key: :submitted_appeal_uuid, primary_key: :guid,
dependent: nil, inverse_of: :saved_claim_hlr, required: false
FORM = '20-0996'
def fo... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/saved_claim/form210779.rb | # frozen_string_literal: true
class SavedClaim::Form210779 < SavedClaim
FORM = '21-0779'
NURSING_HOME_DOCUMENT_TYPE = 222
def process_attachments!
# Form 21-0779 does not support user-uploaded attachments in MVP
Lighthouse::SubmitBenefitsIntakeClaim.perform_async(id)
end
# Required for Lighthouse B... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/saved_claim/veteran_readiness_employment_claim.rb | # frozen_string_literal: true
require 'res/ch31_form'
require 'vets/shared_logging'
require 'vre/notification_email'
class SavedClaim::VeteranReadinessEmploymentClaim < SavedClaim
include Vets::SharedLogging
FORM = '28-1900'
# We will be adding numbers here and eventually completeley removing this and the call... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/saved_claim/ask.rb | # frozen_string_literal: true
class SavedClaim::Ask < SavedClaim
FORM = '0873'
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/saved_claim/supplemental_claim.rb | # frozen_string_literal: true
class SavedClaim::SupplementalClaim < SavedClaim
has_one :appeal_submission, class_name: 'AppealSubmission', foreign_key: :submitted_appeal_uuid, primary_key: :guid,
dependent: nil, inverse_of: :saved_claim_sc, required: false
FORM = '20-0995'
def for... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/saved_claim/form21p530a.rb | # frozen_string_literal: true
class SavedClaim::Form21p530a < SavedClaim
FORM = '21P-530a'
DEFAULT_ZIP_CODE = '00000'
validates :form, presence: true
def form_schema
schema = JSON.parse(Openapi::Requests::Form21p530a::FORM_SCHEMA.to_json)
schema['components'] = JSON.parse(Openapi::Components::ALL.to_... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/saved_claim/pension.rb | # frozen_string_literal: true
##
# Pension 21P-527EZ Active::Record
# proxy for backwards compatibility
#
# @see modules/pensions/app/models/pensions/saved_claim.rb
#
class SavedClaim::Pension < SavedClaim
# form_id, form_type
FORM = '21P-527EZ'
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/saved_claim/education_benefits.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits < SavedClaim
has_one(:education_benefits_claim, foreign_key: 'saved_claim_id', inverse_of: :saved_claim)
validates(:education_benefits_claim, presence: true)
before_validation(:add_education_benefits_claim)
def self.form_class(form_type)
... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/saved_claim/burial.rb | # frozen_string_literal: true
##
# Burial 21P-530EZ Active::Record
# proxy for backwards compatibility
#
# @see modules/burials/app/models/burials/saved_claim.rb
#
class SavedClaim::Burial < SavedClaim
# form_id, form_type
FORM = Burials::FORM_ID
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/saved_claim/form212680.rb | # frozen_string_literal: true
class SavedClaim::Form212680 < SavedClaim
FORM = '21-2680'
# Regional office information for Pension Management Center
def regional_office
[
'Department of Veterans Affairs',
'Pension Management Center',
'P.O. Box 5365',
'Janesville, WI 53547-5365'
]... |
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/disability_compensation/form526_increase_only.rb | # frozen_string_literal: true
# This model is no longer actvely used, new forms use Form526AllClaim, but it's useful for retreiving old data.
class SavedClaim::DisabilityCompensation::Form526IncreaseOnly < SavedClaim::DisabilityCompensation
end
|
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/disability_compensation/form526_all_claim.rb | # frozen_string_literal: true
class SavedClaim::DisabilityCompensation::Form526AllClaim < SavedClaim::DisabilityCompensation
add_form_and_validation('21-526EZ-ALLCLAIMS')
end
|
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_0839.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA0839 < SavedClaim::EducationBenefits
add_form_and_validation('22-0839')
end
|
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_5490.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA5490 < SavedClaim::EducationBenefits
add_form_and_validation('22-5490')
def after_submit(_user)
parsed_form_data ||= JSON.parse(form)
email = parsed_form_data['email']
return if email.blank?
return unless Flipper.enabled?(:form5... |
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_1990.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA1990 < SavedClaim::EducationBenefits
add_form_and_validation('22-1990')
# pulled from https://github.com/department-of-veterans-affairs/vets-website/blob/f27b8a5ffe4e2f9357d6c501c9a6a73dacdad0e1/src/applications/edu-benefits/utils/helpers.jsx#L1... |
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_5495.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA5495 < SavedClaim::EducationBenefits
add_form_and_validation('22-5495')
def after_submit(_user)
return unless Flipper.enabled?(:form5495_confirmation_email)
parsed_form_data = JSON.parse(form)
email = parsed_form_data['email']
r... |
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_1995.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA1995 < SavedClaim::EducationBenefits
add_form_and_validation('22-1995')
# Pulled from https://github.com/department-of-veterans-affairs/vets-website/src/applications/edu-benefits/utils/helpers.jsx#L100
# & https://github.com/department-of-vete... |
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_8794.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA8794 < SavedClaim::EducationBenefits
add_form_and_validation('22-8794')
end
|
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_10216.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA10216 < SavedClaim::EducationBenefits
add_form_and_validation('22-10216')
end
|
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_0803.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA0803 < SavedClaim::EducationBenefits
add_form_and_validation('22-0803')
end
|
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_0994.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA0994 < SavedClaim::EducationBenefits
add_form_and_validation('22-0994')
def after_submit(_user)
return unless Flipper.enabled?(:form0994_confirmation_email)
parsed_form_data ||= JSON.parse(form)
email = parsed_form_data['emailAddres... |
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_0976.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA0976 < SavedClaim::EducationBenefits
add_form_and_validation('22-0976')
end
|
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_1919.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA1919 < SavedClaim::EducationBenefits
add_form_and_validation('22-1919')
end
|
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_10203.rb | # frozen_string_literal: true
require 'lighthouse/benefits_education/service'
require 'feature_flipper'
class SavedClaim::EducationBenefits::VA10203 < SavedClaim::EducationBenefits
add_form_and_validation('22-10203')
class Submit10203Error < StandardError
end
def after_submit(user)
@user = user
if @... |
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_10282.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA10282 < SavedClaim::EducationBenefits
add_form_and_validation('22-10282')
def after_submit(_user)
return unless Flipper.enabled?(:form22_10282_confirmation_email)
parsed_form_data = JSON.parse(form)
email = parsed_form_data.dig('con... |
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_10275.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA10275 < SavedClaim::EducationBenefits
add_form_and_validation('22-10275')
def after_submit(_user)
return unless Flipper.enabled?(:form22_10275_submission_email)
email_template = Settings.vanotify.services.va_gov.template_id.form10275_su... |
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_0993.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA0993 < SavedClaim::EducationBenefits
add_form_and_validation('22-0993')
end
|
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_10297.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA10297 < SavedClaim::EducationBenefits
add_form_and_validation('22-10297')
def after_submit(_user)
return unless Flipper.enabled?(:form22_10297_confirmation_email)
parsed_form_data = JSON.parse(form)
email = parsed_form_data.dig('con... |
0 | code_files/vets-api-private/app/models/saved_claim | code_files/vets-api-private/app/models/saved_claim/education_benefits/va_10215.rb | # frozen_string_literal: true
class SavedClaim::EducationBenefits::VA10215 < SavedClaim::EducationBenefits
add_form_and_validation('22-10215')
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/claims_api/claim_submission.rb | # frozen_string_literal: true
module ClaimsApi
class ClaimSubmission < ApplicationRecord
validates :claim_type, presence: true
validates :consumer_label, presence: true
belongs_to :claim, class_name: 'AutoEstablishedClaim'
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/va_profile_redis/veteran_status.rb | # frozen_string_literal: true
require 'va_profile/models/veteran_status'
require 'common/models/redis_store'
require 'common/models/concerns/cache_aside'
require 'va_profile/configuration'
module VAProfileRedis
class VeteranStatus < Common::RedisStore
include Common::CacheAside
redis_config_key :va_profile... |
0 | code_files/vets-api-private/app/models/va_profile_redis | code_files/vets-api-private/app/models/va_profile_redis/v2/cache.rb | # frozen_string_literal: true
require 'vets/shared_logging'
module VAProfileRedis
module V2
class Cache
include Vets::SharedLogging
# Invalidates the cache set in VAProfileRedis::V2::ContactInformation through
# our Common::RedisStore#destroy method.
#
# @param user [User] The cur... |
0 | code_files/vets-api-private/app/models/va_profile_redis | code_files/vets-api-private/app/models/va_profile_redis/v2/contact_information.rb | # frozen_string_literal: true
require 'va_profile/contact_information/v2/person_response'
require 'va_profile/contact_information/v2/service'
require 'va_profile/models/address'
require 'va_profile/models/telephone'
require 'common/models/redis_store'
require 'common/models/concerns/cache_aside'
require 'va_profile/co... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/adapters/payment_history_adapter.rb | # frozen_string_literal: true
module Adapters
class PaymentHistoryAdapter
attr_accessor :payments, :return_payments
def initialize(input)
@input_payment = input&.dig(:payments, :payment)
if @input_payment.nil? || !Flipper.enabled?(:payment_history)
@payments = []
@return_payment... |
0 | code_files/vets-api-private/app/models/mhv | code_files/vets-api-private/app/models/mhv/mr/vaccine.rb | # frozen_string_literal: true
module MHV
module MR
class Vaccine < MHV::MR::FHIRRecord
include RedisCaching
redis_config REDIS_CONFIG[:medical_records_cache]
attribute :id, String
attribute :name, String
attribute :date_received, String # Pass on as-is to the f... |
0 | code_files/vets-api-private/app/models/mhv | code_files/vets-api-private/app/models/mhv/mr/health_condition.rb | # frozen_string_literal: true
require 'common/models/base'
module MHV
module MR
class HealthCondition < MHV::MR::FHIRRecord
include RedisCaching
redis_config REDIS_CONFIG[:medical_records_cache]
attribute :id, String
attribute :name, String
attribute :date, Strin... |
0 | code_files/vets-api-private/app/models/mhv | code_files/vets-api-private/app/models/mhv/mr/fhir_record.rb | # frozen_string_literal: true
require 'vets/model'
module MHV
module MR
# Abstract superclass for models built from FHIR resources
# template class that handles common lookup and construction logic
class FHIRRecord
include Vets::Model
# Build a new instance from a FHIR resource, or return n... |
0 | code_files/vets-api-private/app/models/mhv | code_files/vets-api-private/app/models/mhv/mr/allergy.rb | # frozen_string_literal: true
require 'common/models/base'
module MHV
module MR
class Allergy < MHV::MR::FHIRRecord
include RedisCaching
redis_config REDIS_CONFIG[:medical_records_cache]
attribute :id, String
attribute :name, String
attribute :date, ... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/audit/log.rb | # frozen_string_literal: true
module Audit
class Log < ApplicationRecord
IDENTIFIER_TYPES = {
icn: 'icn',
logingov_uuid: 'logingov_uuid',
idme_uuid: 'idme_uuid',
mhv_id: 'mhv_id',
dslogon_id: 'dslogon_id',
system_hostname: 'system_hostname'
}.freeze
validates :subject... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/audit/application_record.rb | # frozen_string_literal: true
module Audit
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
connects_to database: { writing: :audit, reading: :audit }
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/base.rb | # frozen_string_literal: true
require 'vets/model'
module BGSDependents
class Base
include Vets::Model
MILITARY_POST_OFFICE_TYPE_CODES = %w[APO DPO FPO].freeze
# Gets the person's address based on the lives with veteran flag
#
# @param dependents_application [Hash] the submitted form informatio... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/veteran.rb | # frozen_string_literal: true
module BGSDependents
class Veteran < Base
attribute :participant_id, String
attribute :ssn, String
attribute :first_name, String
attribute :middle_name, String
attribute :last_name, String
def initialize(proc_id, user)
@proc_id = proc_id
@user = user... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/adult_child_attending_school.rb | # frozen_string_literal: true
module BGSDependents
class AdultChildAttendingSchool < Base
# The AdultChildAttendingSchool class represents a person including name and address info
#
# @!attribute first
# @return [String] the person's first name
# @!attribute middle
# @return [String] the ... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/divorce.rb | # frozen_string_literal: true
module BGSDependents
class Divorce < Base
def initialize(divorce_info)
@divorce_info = divorce_info
@is_v2 = v2?
end
def format_info
{
divorce_state: @is_v2 ? @divorce_info.dig('divorce_location', 'location', 'state') : @divorce_info.dig('location'... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/child.rb | # frozen_string_literal: true
module BGSDependents
class Child < Base
# The Child class represents a veteran's dependent/child including name, address, and birth info
#
# @!attribute ssn
# @return [String] the person's social security number
# @!attribute first
# @return [String] the pers... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/vnp_benefit_claim.rb | # frozen_string_literal: true
module BGSDependents
class VnpBenefitClaim
VNP_BENEFIT_CREATE_PARAMS = {
status_type_cd: 'CURR',
svc_type_cd: 'CP',
pgm_type_cd: 'COMP',
bnft_claim_type_cd: '130DPNEBNADJ',
atchms_ind: 'N'
}.freeze
def initialize(proc_id, veteran)
@vetera... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/child_marriage.rb | # frozen_string_literal: true
module BGSDependents
class ChildMarriage < Base
def initialize(child_marriage)
@child_marriage = child_marriage
end
def format_info
{
event_date: @child_marriage['date_married'],
ssn: @child_marriage['ssn'],
birth_date: @child_marriage['b... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/step_child.rb | # frozen_string_literal: true
module BGSDependents
class StepChild < Base
EXPENSE_PAID_CONVERTER = { 'Half' => '.5', 'More than half' => '.75', 'Less than half' => '.25' }.freeze
def initialize(stepchild_info)
@stepchild_info = stepchild_info
end
def format_info
{
living_expenses... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/child_school.rb | # frozen_string_literal: true
module BGSDependents
class ChildSchool < Base
attribute :last_term_school_information, Hash
attribute :school_information, Hash
attribute :program_information, Hash
attribute :current_term_dates, Hash
def initialize(dependents_application, proc_id, vnp_participant_i... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/marriage_history.rb | # frozen_string_literal: true
module BGSDependents
class MarriageHistory < Base
def initialize(former_spouse)
@former_spouse = former_spouse
@is_v2 = v2?
@start_source = @is_v2 ? @former_spouse.dig('start_location', 'location') : @former_spouse['start_location']
@end_source = @is_v2 ? @fo... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/death.rb | # frozen_string_literal: true
module BGSDependents
class Death < Base
def initialize(death_info)
@death_info = death_info
@is_v2 = v2?
end
def format_info
dependent_type = relationship_type(@death_info)
info = {
death_date: @is_v2 ? format_date(@death_info['dependent_deat... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/relationship.rb | # frozen_string_literal: true
module BGSDependents
class Relationship < Base
def initialize(proc_id)
@proc_id = proc_id
end
def params_for_686c(participant_a_id, dependent)
{
vnp_proc_id: @proc_id,
vnp_ptcpnt_id_a: participant_a_id,
vnp_ptcpnt_id_b: dependent[:vnp_par... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/spouse.rb | # frozen_string_literal: true
module BGSDependents
class Spouse < Base
# The Spouse class represents a person including name, address, and marital status info
#
# @!attribute ssn
# @return [String] the person's social security number
# @!attribute first
# @return [String] the person's fir... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/child_stopped_attending_school.rb | # frozen_string_literal: true
module BGSDependents
class ChildStoppedAttendingSchool < Base
def initialize(child_info)
@child_info = child_info
end
def format_info
{
event_date: @child_info['date_child_left_school'],
ssn: @child_info['ssn'],
birth_date: @child_info['b... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/bgs_dependents/child_student.rb | # frozen_string_literal: true
module BGSDependents
class ChildStudent < Base
attribute :student_address_marriage_tuition, Hash
attribute :student_earnings_from_school_year, Hash
attribute :student_networth_information, Hash
attribute :student_expected_earnings_next_year, Hash
attribute :student_i... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/schema_contract/validation.rb | # frozen_string_literal: true
module SchemaContract
class Validation < ApplicationRecord
self.table_name = 'schema_contract_validations'
attribute :contract_name, :string
attribute :user_account_id, :string
attribute :user_uuid, :string
attribute :response, :jsonb
attribute :error_details, :... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/schema_contract/validation_initiator.rb | # frozen_string_literal: true
module SchemaContract
class ValidationInitiator
def self.call(user:, response:, contract_name:)
if response.success?
body = response.body
initiate_validation(user:, body:, contract_name:)
end
rescue => e
# blanket rescue to avoid blocking main t... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/schema_contract/validator.rb | # frozen_string_literal: true
module SchemaContract
class Validator
class SchemaContractValidationError < StandardError; end
def initialize(record_id)
@record_id = record_id
end
def validate
errors = JSON::Validator.fully_validate(parsed_schema, record.response)
if errors.any?
... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/external_services_redis/status.rb | # frozen_string_literal: true
require 'common/models/concerns/cache_aside'
require 'pagerduty/external_services/service'
module ExternalServicesRedis
# Facade for the PagerDuty::ExternalServices::Service class.
#
class Status < Common::RedisStore
include Common::CacheAside
KEY = 'pager_duty_services'
... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form1010cg/attachment.rb | # frozen_string_literal: true
module Form1010cg
class Attachment < FormAttachment
ATTACHMENT_UPLOADER_CLASS = ::Form1010cg::PoaUploader
def to_local_file
remote_file = get_file
local_path = "tmp/#{remote_file.path.gsub('/', '_')}"
File.write(local_path, remote_file.read)
local_pat... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form1010cg/submission.rb | # frozen_string_literal: true
module Form1010cg
# A Form1010CG::Submission is the submission of a CaregiversAssistanceClaim (form 10-10CG)
# Used to store data of the relating record created in CARMA.
#
# More information about CARMA can be found in lib/carma/README.md
#
class Submission < ApplicationRecor... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_0839.rb | # frozen_string_literal: true
class FormProfiles::VA0839 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant/information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_1990ez.rb | # frozen_string_literal: true
class FormProfiles::VA1990ez < FormProfile
def return_url
if Flipper.enabled?(:meb_1606_30_automation)
'/benefit-selection'
else
'/applicant-information/personal-information'
end
end
def metadata
{
version: 0,
prefill: true,
returnUrl: ... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_5490.rb | # frozen_string_literal: true
class FormProfiles::VA5490 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/5490/applicant/information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_5655.rb | # frozen_string_literal: true
require 'debt_management_center/models/payment'
require 'debt_management_center/payments_service'
##
# Form Profile for VA Form 5655, the Financial Status Report Form
#
class FormProfiles::VA5655 < FormProfile
attribute :payments, DebtManagementCenter::Payment
##
# Overrides the F... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_212680.rb | # frozen_string_literal: true
# FormProfile for VA Form 21-2680
# Examination for Housebound Status or Permanent Need for Regular Aid and Attendance
class FormProfiles::VA212680 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/veteran-information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_1990.rb | # frozen_string_literal: true
class FormProfiles::VA1990 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant/information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_281900v2.rb | # frozen_string_literal: true
class FormProfiles::VA281900v2 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/veteran-information-review'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_5495.rb | # frozen_string_literal: true
class FormProfiles::VA5495 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/5495/applicant/information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_1995.rb | # frozen_string_literal: true
class FormProfiles::VA1995 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant/information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_1010ez.rb | # frozen_string_literal: true
class FormProfiles::VA1010ez < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/veteran-information/personal-information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_526ez.rb | # frozen_string_literal: true
require 'evss/disability_compensation_form/service'
require 'disability_compensation/factories/api_provider_factory'
require 'vets/model'
module VA526ez
class FormSpecialIssue
include Vets::Model
attribute :code, String
attribute :name, String
end
class FormRatedDisab... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_8794.rb | # frozen_string_literal: true
class FormProfiles::VA8794 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant/information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_261880.rb | # frozen_string_literal: true
class FormProfiles::VA261880 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant-information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_10216.rb | # frozen_string_literal: true
class FormProfiles::VA10216 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant/information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_0803.rb | # frozen_string_literal: true
class FormProfiles::VA0803 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant/information'
}
end
def va_file_number
response = BGS::People::Request.new.find_person_by_participant_id(user:)
response.file_number.presence
... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/feedback_tool.rb | # frozen_string_literal: true
class FormProfiles::FeedbackTool < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant-relationship'
}
end
def convert_country!(form_data)
country = form_data.try(:[], 'address').try(:[], 'country')
form_data['address']['c... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_686c674v2.rb | # frozen_string_literal: true
require 'vets/model'
require 'bid/awards/service'
class FormProfiles::VA686c674v2 < FormProfile
class DependentInformation
include Vets::Model
attribute :full_name, FormFullName
attribute :date_of_birth, Date
attribute :ssn, String
attribute :relationship_to_vetera... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_0994.rb | # frozen_string_literal: true
require 'vets/model'
module VA0994
FORM_ID = '22-0994'
class FormPaymentAccountInformation
include Vets::Model
attribute :account_type, String
attribute :account_number, String
attribute :routing_number, String
attribute :bank_name, String
end
end
class FormP... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/mdot.rb | # frozen_string_literal: true
require 'mdot/address'
require 'mdot/client'
require 'mdot/eligibility'
require 'mdot/supply'
require 'vets/model'
module MDOT
class FormContactInformation
include Vets::Model
attribute :permanent_address, MDOT::Address
attribute :temporary_address, MDOT::Address
attri... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_0976.rb | # frozen_string_literal: true
class FormProfiles::VA0976 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant/information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_5490e.rb | # frozen_string_literal: true
class FormProfiles::VA5490e < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant/information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_0995.rb | # frozen_string_literal: true
class FormProfiles::VA0995 < FormProfiles::DecisionReview
def metadata
{
version: 0,
prefill: true,
returnUrl: '/veteran-information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_1010ezr.rb | # frozen_string_literal: true
require 'hca/enrollment_eligibility/service'
class FormProfiles::VA1010ezr < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/veteran-information/personal-information'
}
end
def ezr_data
@ezr_data ||=
begin
HCA::Enrollm... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_10182.rb | # frozen_string_literal: true
class FormProfiles::VA10182 < FormProfiles::DecisionReview
def metadata
{
version: 0,
prefill: true,
returnUrl: '/veteran-details'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_1919.rb | # frozen_string_literal: true
class FormProfiles::VA1919 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant/information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/decision_review.rb | # frozen_string_literal: true
class FormProfiles::DecisionReview < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/veteran-information'
}
end
private
def street3
vet360_mailing_address&.address_line3
end
def va_file_number_last_four
response = BGS::Pe... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_1990emeb.rb | # frozen_string_literal: true
class FormProfiles::VA1990emeb < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant-information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/vha_10_7959c.rb | # frozen_string_literal: true
class FormProfiles::VHA107959c < FormProfile
FORM_ID = '10-7959C'
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant-info'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_10203.rb | # frozen_string_literal: true
require 'lighthouse/benefits_education/service'
require 'vets/model'
module VA10203
FORM_ID = '22-10203'
class FormInstitutionInfo
include Vets::Model
attribute :name, String
attribute :city, String
attribute :state, String
attribute :country, String
end
cl... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_0873.rb | # frozen_string_literal: true
require 'va_profile/demographics/service'
require 'vets/model'
module VA0873
FORM_ID = '0873'
class FormPersonalInformation
include Vets::Model
attribute :first, String
attribute :middle, String
attribute :last, String
attribute :suffix, String
attribute :pr... |
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_10282.rb | # frozen_string_literal: true
class FormProfiles::VA10282 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant/information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_281900.rb | # frozen_string_literal: true
class FormProfiles::VA281900 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/veteran-information-review'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_0996.rb | # frozen_string_literal: true
class FormProfiles::VA0996 < FormProfiles::DecisionReview
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_10275.rb | # frozen_string_literal: true
class FormProfiles::VA10275 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant/information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/form_upload.rb | # frozen_string_literal: true
class FormProfiles::FormUpload < FormProfile
def self.load_form_mapping(_form_id)
file = Rails.root.join('config', 'form_profile_mappings', 'FORM-UPLOAD.yml')
YAML.load_file(file)
end
def metadata
{
version: 0,
prefill: true
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_1330m.rb | # frozen_string_literal: true
class FormProfiles::VA1330m < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/applicant-name'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_214140.rb | # frozen_string_literal: true
# FormProfile for VA Form 21-4140
# Employment Questionnaire
class FormProfiles::VA214140 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/name-and-date-of-birth'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_0993.rb | # frozen_string_literal: true
class FormProfiles::VA0993 < FormProfile
def metadata
{
version: 0,
prefill: true,
returnUrl: '/claimant-information'
}
end
end
|
0 | code_files/vets-api-private/app/models | code_files/vets-api-private/app/models/form_profiles/va_10297.rb | # frozen_string_literal: true
require 'vets/model'
module VA10297
FORM_ID = '22-10297'
class FormPaymentAccountInformation
include Vets::Model
attribute :account_type, String
attribute :account_number, String
attribute :routing_number, String
attribute :bank_name, String
end
end
class For... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.