app/services/form1010cg/service.rb
# Will submit the claim to CARMA.
#
# @return [Form1010cg::Submission]
Will submit the claim to CARMA.
Will submit the claim to CARMA .
def process_claim!
      raise 'submission already present' if submission.present?
      assert_veteran_status
      carma_submission = CARMA::Models::Submission.from_claim(claim, build_metadata).submit!(carma_client)
      @submission = Form1010cg::Submission.new(
        carma_case_id: carma_submission.carma_case_id,
        accepted_at: carma_submission.submitted_at,
        metadata: carma_submission.request_body['metadata']
      )
      submit_attachment_async
      submission
    end
def process_claim! raise 'submission already present' if submission . present? assert_veteran_status carma_submission = CARMA :: Models :: Submission . from_claim ( claim , build_metadata ) . submit! ( carma_client ) @submission = Form1010cg :: Submission . new ( carma_case_id : carma_submission . carma_case_id , accepted_at : carma_submission . submitted_at , metadata : carma_submission . request_body [ 'metadata' ] ) submit_attachment_async submission end
Will submit the claim to CARMA.
Will submit the claim to CARMA .
None
Form1010cg::Submission