Skip to content

Commit

Permalink
Corrects the namespace in the create_veteran_representative method. R…
Browse files Browse the repository at this point in the history
…e-records vcr cassettes, and adjusts the create_veteran_representative_request_spec accordingly.
  • Loading branch information
stiehlrod committed Dec 20, 2024
1 parent a84d15c commit 4bc92fc
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 241 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ def bean_name
end

def create_veteran_representative(options)
# error VetRep cannot be null
injected = convert_nil_values(options)

body = Nokogiri::XML::DocumentFragment.parse <<~EOXML
<data:VetRepresentative>
<data:VeteranRepresentative>
#{injected}
</data:VetRepresentative>
</data:VeteranRepresentative>
EOXML

make_request(
Expand All @@ -37,6 +36,7 @@ def read_all_veteran_representatives(type_code:, ptcpnt_id:)
<formTypeCode>#{type_code}</formTypeCode>
</ns0:CorpPtcpntIdFormTypeCode>
EOXML

ret = make_request(endpoint: bean_name, namespaces: { 'data' => '/data' },
action: 'readAllVeteranRepresentatives', body:,
key: 'VeteranRepresentativeReturnList',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
'city' => 'Bridgeport',
'claimantPtcpntId' => '182358',
'claimantRelationship' => nil,
'formTypeCode' => '21-22',
'formTypeCode' => '21-22 ',
'insuranceNumbers' => nil,
'limitationAlcohol' => 'false',
'limitationDrugAbuse' => 'false',
Expand Down Expand Up @@ -76,7 +76,7 @@
'claimantMiddleName' => nil,
'declinedBy' => nil,
'declinedReason' => nil,
'secondaryStatus' => nil,
'secondaryStatus' => 'Obsolete',
'veteranFirstName' => 'VERNON',
'veteranLastName' => 'WAGNER',
'veteranMiddleName' => nil,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def current_error_array
},
'federalActivation' => {
'activationDate' => '2023-10-01',
'anticipatedSeparationDate' => '2024-12-20'
'anticipatedSeparationDate' => '2028-12-20'
}
}
end
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4bc92fc

Please sign in to comment.