Class: SavedClaim::IncomeAndAssets

Inherits:
SavedClaim show all
Defined in:
app/models/saved_claim/income_and_assets.rb

Constant Summary collapse

FORM =
'21P-0969'

Instance Method Summary collapse

Methods inherited from SavedClaim

add_form_and_validation, #after_create_metrics, #after_destroy_metrics, #attachment_keys, #business_line, #confirmation_number, #email, #form_is_string, #form_matches_schema, #form_must_be_string, #insert_notification, #open_struct_form, #parsed_form, #process_attachments!, #submitted_at, #to_pdf, #update_form, #va_notification?, #validate_form, #validate_schema

Methods inherited from ApplicationRecord

descendants_using_encryption, lockbox_options, #timestamp_attributes_for_update_in_model, #valid?

Instance Method Details

#regional_officeArray<String>

the predefined regional office address

Returns:

  • (Array<String>)

    the address lines of the regional office



13
14
15
16
17
18
# File 'app/models/saved_claim/income_and_assets.rb', line 13

def regional_office
  ['Department of Veteran Affairs',
   'Pension Intake Center',
   'P.O. Box 5365',
   'Janesville, Wisconsin 53547-5365']
end

#upload_to_lighthouse(current_user = nil) ⇒ Object

send this Income and Assets Evidence claim to the Lighthouse Benefit Intake API

Parameters:

  • current_user (User) (defaults to: nil)

    the current user submitting the form

See Also:



27
28
29
30
31
# File 'app/models/saved_claim/income_and_assets.rb', line 27

def upload_to_lighthouse(current_user = nil)
  return unless Flipper.enabled?(:pension_income_and_assets_clarification, current_user)

  Lighthouse::IncomeAndAssetsIntakeJob.perform_async(id, current_user&.)
end