Class: SavedClaim::CoeClaim
- Inherits:
-
SavedClaim
- Object
- ActiveRecord::Base
- ApplicationRecord
- SavedClaim
- SavedClaim::CoeClaim
- Includes:
- SentryLogging
- Defined in:
- app/models/saved_claim/coe_claim.rb
Constant Summary collapse
- FORM =
'26-1880'
Instance Method Summary collapse
Methods included from SentryLogging
#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger
Methods inherited from SavedClaim
add_form_and_validation, #confirmation_number, #form_is_string, #form_matches_schema, #form_must_be_string, #open_struct_form, #parsed_form, #submit_to_structured_data_services!, #submitted_at, #to_pdf, #update_form
Methods inherited from ApplicationRecord
descendants_using_encryption, lockbox_options, #timestamp_attributes_for_update_in_model, #valid?
Instance Method Details
#regional_office ⇒ Object
34 35 36 |
# File 'app/models/saved_claim/coe_claim.rb', line 34 def regional_office [] end |
#send_to_lgy(edipi:, icn:) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'app/models/saved_claim/coe_claim.rb', line 10 def send_to_lgy(edipi:, icn:) @edipi = edipi @icn = icn if @edipi.blank? ( 'COE application cannot be submitted without an edipi!', :error, {}, { team: 'vfs-ebenefits' } ) end response = lgy_service.put_application(payload: prepare_form_data) ( "COE claim submitted to LGY: #{guid}", :warn, { attachment_id: guid }, { team: 'vfs-ebenefits' } ) response['reference_number'] end |