-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 95356-add-10-10cg-failure-email
- Loading branch information
Showing
46 changed files
with
489 additions
and
20 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
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
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
46 changes: 46 additions & 0 deletions
46
.../controllers/accredited_representative_portal/v0/power_of_attorney_requests_controller.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,46 @@ | ||
# frozen_string_literal: true | ||
|
||
module AccreditedRepresentativePortal | ||
module V0 | ||
class PowerOfAttorneyRequestsController < ApplicationController | ||
POA_REQUEST_ITEM_MOCK_DATA = { | ||
status: 'Pending', | ||
declinedReason: nil, | ||
powerOfAttorneyCode: '091', | ||
submittedAt: '2024-04-30T11:03:17Z', | ||
acceptedOrDeclinedAt: nil, | ||
isAddressChangingAuthorized: false, | ||
isTreatmentDisclosureAuthorized: true, | ||
veteran: { | ||
firstName: 'Jon', | ||
middleName: nil, | ||
lastName: 'Smith', | ||
participantId: '6666666666666' | ||
}, | ||
representative: { | ||
email: '[email protected]', | ||
firstName: 'Jane', | ||
lastName: 'Doe' | ||
}, | ||
claimant: { | ||
firstName: 'Sam', | ||
lastName: 'Smith', | ||
participantId: '777777777777777', | ||
relationshipToVeteran: 'Child' | ||
}, | ||
claimantAddress: { | ||
city: 'Hartford', | ||
state: 'CT', | ||
zip: '06107', | ||
country: 'GU', | ||
militaryPostOffice: nil, | ||
militaryPostalCode: nil | ||
} | ||
}.freeze | ||
|
||
def show | ||
render json: POA_REQUEST_ITEM_MOCK_DATA | ||
end | ||
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
39 changes: 39 additions & 0 deletions
39
...rtal/spec/requests/accredited_representative_portal/v0/power_of_attorney_requests_spec.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,39 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative '../../../rails_helper' | ||
|
||
RSpec.describe AccreditedRepresentativePortal::V0::PowerOfAttorneyRequestsController, type: :request do | ||
let(:test_user) { create(:representative_user) } | ||
let(:poa_request_details_id) { '123' } | ||
let(:poa_request_details_mock_data) do | ||
{ | ||
'status' => 'Pending', | ||
'declinedReason' => nil, | ||
'powerOfAttorneyCode' => '091', | ||
'submittedAt' => '2024-04-30T11:03:17Z', | ||
'acceptedOrDeclinedAt' => nil, | ||
'isAddressChangingAuthorized' => false, | ||
'isTreatmentDisclosureAuthorized' => true, | ||
'veteran' => { 'firstName' => 'Jon', 'middleName' => nil, 'lastName' => 'Smith', | ||
'participantId' => '6666666666666' }, | ||
'representative' => { 'email' => '[email protected]', 'firstName' => 'Jane', 'lastName' => 'Doe' }, | ||
'claimant' => { 'firstName' => 'Sam', 'lastName' => 'Smith', 'participantId' => '777777777777777', | ||
'relationshipToVeteran' => 'Child' }, | ||
'claimantAddress' => { 'city' => 'Hartford', 'state' => 'CT', 'zip' => '06107', 'country' => 'GU', | ||
'militaryPostOffice' => nil, 'militaryPostalCode' => nil } | ||
} | ||
end | ||
|
||
before do | ||
Flipper.enable(:accredited_representative_portal_pilot) | ||
login_as(test_user) | ||
end | ||
|
||
describe 'GET /accredited_representative_portal/v0/power_of_attorney_requests/:id' do | ||
it 'returns the details of a power of attorney request' do | ||
get("/accredited_representative_portal/v0/power_of_attorney_requests/#{poa_request_details_id}") | ||
expect(response).to have_http_status(:ok) | ||
expect(JSON.parse(response.body)).to include(poa_request_details_mock_data) | ||
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
Binary file modified
BIN
+55 Bytes
(100%)
modules/appeals_api/spec/fixtures/decision_reviews/v2/pdfs/v4/expected_200996_extra.pdf
Binary file not shown.
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
Oops, something went wrong.