-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Api 28113 replace bgs ext poa updater (#19325)
* Adds flipper feature. * Moves the find_by_ssn call to PersonWebService from LocalBgs. * Adds VetRecordService to LocalBgs. * Adds ability to switch between bgs-ext & local_bgs for vet_record & person_web_service. * Getting successful responses, but getting 'BGS Error: update_birls_record failed with code BPNQ0100' * Reverts instance variable. Adds definition. Adds PAYEE_NUMBER value. * Refactors poa_updater. Replaces find_by_ssn in local_bgs due to many failing tests. Created a ticket to remove that method from local_bgs since it exists in two places. * WIP: switching branches. * Cleans up poa_updater. Adds definitions. Updates vcr cassette. * Removes find_birls_record * Corrects vet record service. Updates tests with flipper feature, and replaces vcr cassette. * Updates person web service * Removes method definitions. * Renames flippers, separates features into two flippers. Adds two tests. Need to re-record vcr cassette. * Updates test and shared vcr cassette. * Adds flipper test. * Adds tests for flipper.
- Loading branch information
Showing
7 changed files
with
1,026 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
modules/claims_api/lib/bgs_service/vet_record_web_service.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# frozen_string_literal: true | ||
|
||
module ClaimsApi | ||
class VetRecordWebService < ClaimsApi::LocalBGS | ||
def bean_name | ||
'VetRecordServiceBean/VetRecordWebService' | ||
end | ||
|
||
def update_birls_record(**options) | ||
poa_code = options[:poa_code] | ||
body = Nokogiri::XML::DocumentFragment.parse <<~EOML | ||
<birlsUpdateInput> | ||
<CLAIM_NUMBER>#{options[:file_number]}</CLAIM_NUMBER> | ||
<SOC_SEC_NUM>#{options[:ssn]}</SOC_SEC_NUM> | ||
<POWER_OF_ATTY_CODE1>#{poa_code[0]}</POWER_OF_ATTY_CODE1> | ||
<POWER_OF_ATTY_CODE2>#{poa_code[1]}#{poa_code[2]}</POWER_OF_ATTY_CODE2> | ||
<PAYEE_NUMBER>00</PAYEE_NUMBER> | ||
</birlsUpdateInput> | ||
EOML | ||
|
||
make_request(endpoint: bean_name, body:, action: 'updateBirlsRecord', key: 'return') | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.