index int64 0 0 | repo_id stringclasses 829
values | file_path stringlengths 34 254 | content stringlengths 6 5.38M |
|---|---|---|---|
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/sidekiq | code_files/vets-api-private/modules/accredited_representative_portal/spec/sidekiq/accredited_representative_portal/power_of_attorney_form_submission_job_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require_relative '../../spec_helper'
require 'sidekiq/testing'
RSpec.describe AccreditedRepresentativePortal::PowerOfAttorneyFormSubmissionJob, type: :job do
subject { described_class.new }
let(:poa_form_submission) do
create(:power_of_attorney_form_submis... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/sidekiq | code_files/vets-api-private/modules/accredited_representative_portal/spec/sidekiq/accredited_representative_portal/allow_list_sync_job_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require Rails.root / 'modules/accredited_representative_portal/spec/rails_helper'
require 'base64'
RSpec.describe AccreditedRepresentativePortal::AllowListSyncJob, type: :job do
def build_csv(rows)
headers = 'accredited_individual_registration_number,power_of... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/representative_user_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::RepresentativeUser, type: :model do
describe 'validations' do
context 'valid'
context 'when all required attributes are present' do
let(:representative_user) { build(:representative_user) }
it 'i... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/claimant_representative_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::ClaimantRepresentative, type: :model do
describe '.find' do
context 'with all required arguments' do
subject do
power_of_attorney_holder_memberships =
AccreditedRepresentativePortal::Power... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/user_account_accredited_individual_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::UserAccountAccreditedIndividual, type: :model do
let(:valid_attributes) do
{
accredited_individual_registration_number: 'REG001',
power_of_attorney_holder_type: 'veteran_service_organization',
u... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/power_of_attorney_request_notification_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::PowerOfAttorneyRequestNotification, type: :model do
let(:power_of_attorney_request) { create(:power_of_attorney_request) }
let(:va_notify_notification) { create(:notification) }
describe 'validations' do
it ... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/power_of_attorney_request_withdrawal_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::PowerOfAttorneyRequestWithdrawal, type: :model do
it 'validates inclusion of type in (replacement)' do
withdrawal = build(:power_of_attorney_request_withdrawal, type: 'invalid')
withdrawal.valid?
expect(... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/icn_temporary_identifier_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::IcnTemporaryIdentifier, type: :model do
describe '.save_icn' do
let(:icn) { '123498767V234859' }
context 'when a record with the ICN does not exist' do
it 'creates a new record with the ICN and returns... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/power_of_attorney_holder_memberships_spec.rb | # frozen_string_literal: true
require 'rails_helper'
module AccreditedRepresentativePortal # rubocop:disable Metrics/ModuleLength
RSpec.describe PowerOfAttorneyHolderMemberships do
describe '#all' do
subject(:all) { described_class.new(icn: 'some_icn', emails:).send(:all) }
let(:emails) { [] }
... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/saved_claim_claimant_representative_spec.rb | # frozen_string_literal: true
require 'rails_helper'
# Minimal class so verified doubles can reference a constant.
class DummyPOAHolder
def initialize(hash) = @hash = hash
def to_h = @hash
end
RSpec.describe AccreditedRepresentativePortal::SavedClaimClaimantRepresentative, type: :model do
include ActiveSupport... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/power_of_attorney_request_resolution_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::PowerOfAttorneyRequestResolution, type: :model do
it 'must uniquely be associated to a poa request' do
resolution_a = create(:power_of_attorney_request_resolution, :expiration)
resolution_b = build(
:p... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/power_of_attorney_request_decision_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::PowerOfAttorneyRequestDecision, type: :model do
it 'validates inclusion of type in (acceptance, declination)' do
decision = build(:power_of_attorney_request_decision, type: 'invalid')
decision.valid?
exp... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/power_of_attorney_form_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::PowerOfAttorneyForm, type: :model do
let(:trait) { nil }
let(:form) do
build(
:power_of_attorney_form,
trait,
power_of_attorney_request: build(:power_of_attorney_request)
)
end
descr... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/power_of_attorney_request_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::PowerOfAttorneyRequest, type: :model do
describe 'associations' do
it 'validates its form and claimant type' do
poa_request = build(
:power_of_attorney_request,
power_of_attorney_form: build... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/models/accredited_representative_portal/saved_claim/benefits_intake_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::SavedClaim::BenefitsIntake, type: :model do
subject(:claim) do
form = {}.to_json
described_class::DependencyClaim.new(form:)
end
before do
allow(VetsJsonSchema::SCHEMAS).to(
receive(:[]).and_re... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/policies | code_files/vets-api-private/modules/accredited_representative_portal/spec/policies/accredited_representative_portal/intent_to_file_policy_spec.rb | # frozen_string_literal: true
require 'rails_helper'
module AccreditedRepresentativePortal
RSpec.describe IntentToFilePolicy, type: :policy do
subject(:policy) { described_class.new(user, '123498767V234859') }
let(:user) { create(:representative_user) }
let(:power_of_attorney_holder_memberships) { [] }... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/policies | code_files/vets-api-private/modules/accredited_representative_portal/spec/policies/accredited_representative_portal/application_policy_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::ApplicationPolicy do
let(:user) { double('User') }
let(:record) { double('Record') }
let(:policy) { described_class.new(user, record) }
let(:mock_logger) { instance_double(SemanticLogger::Logger, warn: nil) }
... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/policies | code_files/vets-api-private/modules/accredited_representative_portal/spec/policies/accredited_representative_portal/representative_form_upload_policy_spec.rb | # frozen_string_literal: true
require 'rails_helper'
module AccreditedRepresentativePortal
RSpec.describe RepresentativeFormUploadPolicy, type: :policy do
subject(:policy) { described_class.new(user, claimant_representative) }
let(:user) { create(:representative_user) }
let(:empty) { true }
let(:cl... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/policies | code_files/vets-api-private/modules/accredited_representative_portal/spec/policies/accredited_representative_portal/power_of_attorney_request_policy_spec.rb | # frozen_string_literal: true
require 'rails_helper'
module AccreditedRepresentativePortal # rubocop:disable Metrics/ModuleLength
RSpec.describe PowerOfAttorneyRequestPolicy, type: :policy do
subject(:policy) { described_class.new(user, power_of_attorney_request) }
let(:user) { create(:representative_user)... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/policies | code_files/vets-api-private/modules/accredited_representative_portal/spec/policies/accredited_representative_portal/saved_claim_claimant_representative_policy_spec.rb | # frozen_string_literal: true
require 'rails_helper'
module AccreditedRepresentativePortal
RSpec.describe SavedClaimClaimantRepresentativePolicy, type: :policy do
subject(:policy) { described_class.new(user, record_class) }
let(:user) { create(:representative_user) }
let(:record_class) { Accred... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/bypass_olive_branch_spec.rb | # frozen_string_literal: true
require 'rails_helper'
class BypassOliveBranchTestController < ActionController::API
def arp = render json: {}
def normal = render json: {}
end
RSpec.describe AccreditedRepresentativePortal::BypassOliveBranch, type: :request do
subject do
get "#{path_prefix}/bypass_olive_branc... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/application_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::ApplicationController, type: :request do
describe 'GET /accredited_representative_portal/arbitrary' do
subject do
get '/accredited_representative_portal/arbitrary'
response
end
let(:arp_clien... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/authorized_as_representative_spec.rb | # frozen_string_literal: true
require_relative '../../../rails_helper'
RSpec.describe 'AccreditedRepresentativePortal::V0::AuthorizeAsRepresentative', type: :request do
describe 'GET /accredited_representative_portal/v0/authorize_as_representative' do
context 'when not authenticated' do
it 'responds with ... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/form21a_spec.rb | # frozen_string_literal: true
require_relative '../../../rails_helper'
RSpec.describe 'AccreditedRepresentativePortal::V0::Form21a', type: :request do
subject(:make_post_request) { post('/accredited_representative_portal/v0/form21a', params: payload, headers:) }
let(:form_data) do
{
'firstName' => 'Joh... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/representative_form_uploads_spec.rb | # frozen_string_literal: true
require_relative '../../../rails_helper'
require 'benefits_intake_service/service'
RSpec.describe AccreditedRepresentativePortal::V0::RepresentativeFormUploadController, :uploader_helpers,
type: :request do
stub_virus_scan
let!(:poa_code) { '067' }
let(:representativ... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/power_of_attorney_requests_spec.rb | # frozen_string_literal: true
require_relative '../../../rails_helper'
def load_response_fixture(path_suffix)
dir = './power_of_attorney_requests_spec/responses'
File.expand_path("#{dir}/#{path_suffix}", __dir__)
.then { |path| File.read(path) }
.then { |json| JSON.parse(json) }
end
load_response_fix... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/power_of_attorney_request_decisions_spec.rb | # frozen_string_literal: true
require_relative '../../../rails_helper'
RSpec.describe AccreditedRepresentativePortal::V0::PowerOfAttorneyRequestDecisionsController, type: :request do
let!(:poa_code) { 'x23' }
let!(:other_poa_code) { 'z99' }
let!(:test_user) do
create(:representative_user, email: 'test@va.g... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/claim_submissions_spec.rb | # frozen_string_literal: true
require_relative '../../../rails_helper'
RSpec.describe AccreditedRepresentativePortal::V0::ClaimSubmissionsController, type: :request do
before do
login_as(representative_user)
allow_any_instance_of(Auth::ClientCredentials::Service).to receive(:get_token).and_return('fake_acce... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/intent_to_file_spec.rb | # frozen_string_literal: true
require_relative '../../../rails_helper'
RSpec.describe AccreditedRepresentativePortal::V0::IntentToFileController, type: :request do
let(:poa_code) { '067' }
let(:poa_check_vcr_response) { '200_response' }
let!(:test_user) do
create(:representative_user, email: 'test@va.gov', ... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/claimant_spec.rb | # frozen_string_literal: true
require_relative '../../../rails_helper'
RSpec.describe AccreditedRepresentativePortal::V0::ClaimantController, type: :request do
before do
login_as(test_user)
travel_to(time)
allow_any_instance_of(Auth::ClientCredentials::Service).to receive(:get_token).and_return('fake_ac... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/user_spec.rb | # frozen_string_literal: true
require_relative '../../../rails_helper'
RSpec.describe 'AccreditedRepresentativePortal::V0::User', type: :request do
describe '#show' do
context 'when not authenticated' do
it 'responds with unauthorized' do
get '/accredited_representative_portal/v0/user'
ex... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/in_progress_forms_spec.rb | # frozen_string_literal: true
require_relative '../../../rails_helper'
RSpec.describe AccreditedRepresentativePortal::V0::InProgressFormsController, type: :request do
let(:representative_user) { create(:representative_user) }
let(:form_id) { '21a' }
let(:headers) { { 'Content-Type' => 'application/json' } }
... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/power_of_attorney_requests_spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/power_of_attorney_requests_spec/responses/veteran_claimant_power_of_attorney_form.json | {
"authorizations": {
"recordDisclosureLimitations": [
"HIV",
"DRUG_ABUSE"
],
"addressChange": true
},
"claimant": {
"name": {
"first": "John",
"middle": "Middle",
"last": "Doe"
},
"address": {
"addressLine1": "123 Main St",
"addressLine2": "Apt 1"... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/power_of_attorney_requests_spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/requests/accredited_representative_portal/v0/power_of_attorney_requests_spec/responses/dependent_claimant_power_of_attorney_form.json | {
"authorizations": {
"recordDisclosureLimitations": [],
"addressChange": true
},
"veteran": {
"name": {
"first": "John",
"middle": "Middle",
"last": "Doe"
},
"address": {
"addressLine1": "123 Main St",
"addressLine2": "Apt 1",
"city": "Springfield",
"... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/serializers | code_files/vets-api-private/modules/accredited_representative_portal/spec/serializers/accredited_representative_portal/claimant_serializer_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::ClaimantSerializer, type: :serializer do
subject do
described_class.new(
power_of_attorney_requests:,
claimant_representative:,
claimant_profile:
).as_json
end
let(:address) do
doub... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/serializers | code_files/vets-api-private/modules/accredited_representative_portal/spec/serializers/accredited_representative_portal/power_of_attorney_request_serializer_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::PowerOfAttorneyRequestSerializer, type: :serializer do
let(:veteran_declined_resolution) do
create(:power_of_attorney_request_resolution, :declination, :with_veteran_claimant,
reason: 'Test reason for ... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/serializers | code_files/vets-api-private/modules/accredited_representative_portal/spec/serializers/accredited_representative_portal/saved_claim_claimant_representative_serializer_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::SavedClaimClaimantRepresentativeSerializer, type: :serializer do
subject { described_class.new(saved_claim_claimant_rep).serializable_hash }
let(:saved_claim_claimant_rep) { create(:saved_claim_claimant_representa... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/user_account_accredited_individual.rb | # frozen_string_literal: true
FactoryBot.define do
factory :user_account_accredited_individual,
class: 'AccreditedRepresentativePortal::UserAccountAccreditedIndividual' do
transient do
poa_code { 'x35' }
end
accredited_individual_registration_number { Faker::Number.unique.number(digits: ... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/power_of_attorney_request_resolution.rb | # frozen_string_literal: true
FactoryBot.define do
factory :power_of_attorney_request_resolution,
class: 'AccreditedRepresentativePortal::PowerOfAttorneyRequestResolution' do
power_of_attorney_request
transient do
resolution_created_at { nil }
poa_code { Faker::Alphanumeric.alphanumeri... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/saved_claim.rb | # frozen_string_literal: true
form_data =
{
'veteran' =>
{ 'name' => { 'first' => 'John', 'last' => 'Doe' },
'ssn' => '123456789',
'dateOfBirth' => '1980-12-31',
'postalCode' => '12345' },
'dependent' =>
{ 'name' => { 'first' => 'John', 'last' => 'Doe' },
'dateOfBi... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/power_of_attorney_request_decision.rb | # frozen_string_literal: true
FactoryBot.define do
factory :power_of_attorney_request_decision,
class: 'AccreditedRepresentativePortal::PowerOfAttorneyRequestDecision' do
association :creator, factory: :user_account
# By default build a valid declination decision
type { Accredite... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/power_of_attorney_form_submission.rb | # frozen_string_literal: true
FactoryBot.define do
factory :power_of_attorney_form_submission,
class: 'AccreditedRepresentativePortal::PowerOfAttorneyFormSubmission' do
association :power_of_attorney_request
service_id { SecureRandom.uuid }
service_response { '{}' }
status { :enqueue_succee... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/power_of_attorney_request_notification.rb | # frozen_string_literal: true
FactoryBot.define do
factory :power_of_attorney_request_notification,
class: 'AccreditedRepresentativePortal::PowerOfAttorneyRequestNotification' do
association :power_of_attorney_request, factory: :power_of_attorney_request
notification_id { nil }
type { Accredite... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/power_of_attorney_form.rb | # frozen_string_literal: true
dependent_claimant_data_hash = {
authorizations: {
recordDisclosureLimitations: [],
addressChange: true
},
dependent: {
name: {
first: 'John',
middle: 'Middle',
last: 'Doe'
},
address: {
addressLine1: '123 Main St',
addressLine2: 'Ap... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/representative_user.rb | # frozen_string_literal: true
FactoryBot.define do
factory :representative_user, class: 'AccreditedRepresentativePortal::RepresentativeUser' do
transient do
sign_in_service_name { SignIn::Constants::Auth::IDME }
accredited_individual { nil }
end
authn_context { LOA::IDME_LOA3_VETS }
emai... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/power_of_attorney_request_expiration.rb | # frozen_string_literal: true
FactoryBot.define do
factory :power_of_attorney_request_expiration,
class: 'AccreditedRepresentativePortal::PowerOfAttorneyRequestExpiration'
end
|
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/power_of_attorney_holder.rb | # frozen_string_literal: true
FactoryBot.define do
factory :power_of_attorney_holder, class: 'AccreditedRepresentativePortal::PowerOfAttorneyHolder' do
type { 'veteran_service_organization' }
poa_code { "POA#{Faker::Number.number(digits: 3)}" }
name { 'Org Name' }
can_accept_digital_poa_requests { tr... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/saved_claim_claimant_representative.rb | # frozen_string_literal: true
FactoryBot.define do
factory :saved_claim_claimant_representative,
class: 'AccreditedRepresentativePortal::SavedClaimClaimantRepresentative' do
saved_claim { create(:saved_claim_benefits_intake) }
claimant_id { SecureRandom.uuid }
claimant_type { 'veteran' }
po... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/power_of_attorney_request_withdrawal.rb | # frozen_string_literal: true
FactoryBot.define do
factory :power_of_attorney_request_withdrawal,
class: 'AccreditedRepresentativePortal::PowerOfAttorneyRequestWithdrawal' do
association :resolution, factory: :power_of_attorney_request_resolution
trait :replacement do
transient do
cl... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/factories/power_of_attorney_request.rb | # frozen_string_literal: true
FactoryBot.define do
factory :power_of_attorney_request, class: 'AccreditedRepresentativePortal::PowerOfAttorneyRequest' do
association :claimant, factory: :user_account
association :power_of_attorney_form, strategy: :build
transient do
poa_code { Faker::Alphanumeric.... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/lib/monitor_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require 'accredited_representative_portal/monitor'
RSpec.describe AccreditedRepresentativePortal::Monitor do
let(:claim) { create(:saved_claim_benefits_intake) }
let(:monitor) { described_class.new(claim:) }
before do
# This removes: SHRINE WARNING: Erro... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/lib/submission_handler_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require 'accredited_representative_portal/submission_handler'
require 'accredited_representative_portal/monitor'
require 'accredited_representative_portal/notification_email'
RSpec.describe AccreditedRepresentativePortal::SubmissionHandler do
let(:handler) { desc... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/lib/notification_callback_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require 'accredited_representative_portal/monitor'
require 'accredited_representative_portal/notification_callback'
require 'lib/veteran_facing_services/notification_callback/shared/saved_claim'
RSpec.describe AccreditedRepresentativePortal::NotificationCallback d... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/lib/notification_email_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require 'accredited_representative_portal/notification_email'
RSpec.describe AccreditedRepresentativePortal::NotificationEmail do
let(:saved_claim) { create(:saved_claim_benefits_intake) }
let(:vanotify) { double(send_email: true) }
before do
# This remo... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/lib | code_files/vets-api-private/modules/accredited_representative_portal/spec/lib/tasks/staging_seed_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require_relative '../../../lib/tasks/seed/staging_seed'
RSpec.describe AccreditedRepresentativePortal::StagingSeeds,
skip: 'takes 2 mins and code it is testing will not be modified further' do
# claimants
let!(:test_accounts) { create_list(:user_... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures/power_of_attorney_form_submission/error.json | {
"data": {
"id": "a4dd5bb0-d47b-4ca9-9afc-d7ce6a820985",
"type": "claimsApiPowerOfAttorneys",
"attributes": {
"dateRequestAccepted": "2025-01-16",
"previousPoa": "-",
"representative": {
"veteran": {
"address": {
"addressLine1": "123",
"addressL... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures/power_of_attorney_form_submission/updated.json | {
"data": {
"id": "a4dd5bb0-d47b-4ca9-9afc-d7ce6a820985",
"type": "claimsApiPowerOfAttorneys",
"attributes": {
"dateRequestAccepted": "2025-01-16",
"previousPoa": "-",
"representative": {
"veteran": {
"address": {
"addressLine1": "123",
"addressL... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures/power_of_attorney_form_submission/submitted.json | {
"data": {
"id": "a4dd5bb0-d47b-4ca9-9afc-d7ce6a820985",
"type": "claimsApiPowerOfAttorneys",
"attributes": {
"dateRequestAccepted": "2025-01-16",
"previousPoa": "-",
"representative": {
"veteran": {
"address": {
"addressLine1": "123",
"addressL... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures/power_of_attorney_form_submission/pending.json | {
"data": {
"id": "a4dd5bb0-d47b-4ca9-9afc-d7ce6a820985",
"type": "claimsApiPowerOfAttorneys",
"attributes": {
"dateRequestAccepted": "2025-01-16",
"previousPoa": "-",
"representative": {
"veteran": {
"address": {
"addressLine1": "123",
"addressL... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures/form_data/representative_form_upload_21_526EZ.json | {
"form_id": "21-526EZ",
"representative_form_upload": {
"formName": "APPLICATION FOR DISABILITY COMPENSATION AND RELATED COMPENSATION BENEFITS",
"formData": {
"veteranSsn": "796126859",
"postalCode": "12345",
"veteranDateOfBirth": "1932-02-05",
"formNumber": "21-526EZ",
"email... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures/form_data/invalid_form_number.json | {
"representative_form_upload": {
"formName": "Declaration of Status of Dependents",
"confirmationCode": "123456",
"formData": {
"veteranSsn": "796126859",
"postalCode": "12345",
"veteranDateOfBirth": "1932-02-05",
"formNumber": "invalid-form",
"email": "john@veteran.com",
... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures/form_data/claimant_form_upload_21_686c.json | {
"form_id": "21-686c",
"representative_form_upload": {
"formName": "Declaration of Status of Dependents",
"confirmationCode": "123456",
"formData": {
"veteranSsn": "796126859",
"postalCode": "12345",
"veteranDateOfBirth": "1932-02-05",
"formNumber": "21-686c",
"email": "jo... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures/form_data/representative_form_upload_21_686c.json | {
"form_id": "21-686c",
"representative_form_upload": {
"formName": "Declaration of Status of Dependents",
"formData": {
"veteranSsn": "796126859",
"postalCode": "12345",
"veteranDateOfBirth": "1932-02-05",
"formNumber": "21-686c",
"email": "john@veteran.com",
"veteranFul... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures/form_data/saved_claim | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures/form_data/saved_claim/benefits_intake/veteran_claimant.json | {
"veteran": {
"name": {
"first": "John",
"middle": "Middle",
"last": "Doe"
},
"address": {
"addressLine1": "123 Main St",
"addressLine2": "Apt 1",
"city": "Springfield",
"stateCode": "IL",
"country": "US",
"zipCode": "62704",
"zipCodeSuffix": "6... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures/form_data/saved_claim | code_files/vets-api-private/modules/accredited_representative_portal/spec/fixtures/form_data/saved_claim/benefits_intake/dependent_claimant.json | {
"veteran": {
"name": {
"first": "John",
"last": "Doe"
},
"postalCode": "62704",
"ssn": "123456789",
"dateOfBirth": "1980-12-31"
},
"dependent": {
"name": {
"first": "John",
"last": "Doe"
},
"ssn": "012345678",
"dateOfBirth": "1980-12-31"
}
}
|
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/routing/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/routing/accredited_representative_portal/v0/representative_user_routing_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::V0::RepresentativeUsersController, type: :routing do
describe 'routing' do
it 'routes to #show' do
expect(get: '/accredited_representative_portal/v0/user').to route_to(
'accredited_representative_po... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/controllers/concerns | code_files/vets-api-private/modules/accredited_representative_portal/spec/controllers/concerns/accredited_representative_portal/authenticable_spec.rb | # frozen_string_literal: true
require_relative '../../../rails_helper'
RSpec.describe AccreditedRepresentativePortal::Authenticable do
controller(AccreditedRepresentativePortal::ApplicationController) do
skip_after_action :verify_pundit_authorization
def index
head :ok
end
end
let(:represent... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accreditation_service_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require 'faraday'
require 'json'
RSpec.describe AccreditationService do
let(:parsed_body) { { field: 'value' } }
let(:user_uuid) { 'test-user-uuid' }
describe '#submit_form21a' do
context 'when the request is successful' do
it 'returns a successful... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/enable_online_submission_21_22_service_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::EnableOnlineSubmission2122Service do
describe '.call' do
subject(:call_service) { described_class.call(poa_codes:) }
context 'with comma-separated string' do
let!(:org_svs) { Veteran::Service::Organiza... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/email_delivery_status_callback_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::EmailDeliveryStatusCallback do
let(:base_metadata) do
{
'form_number' => 'Form Number',
'statsd_tags' => {
'service' => 'representation-management',
'function' => 'appoint_a_representa... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/benefits_intake_service_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require 'accredited_representative_portal/benefits_intake_service'
require 'benefits_intake_service/service'
RSpec.describe AccreditedRepresentativePortal::BenefitsIntakeService do
describe '.base_request_headers' do
context 'missing api key' do
before ... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/representative_user_loader_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::RepresentativeUserLoader do
describe '#perform' do
subject(:representative_user_loader) { described_class.new(access_token:, request_ip:) }
let(:reloaded_user) { representative_user_loader.perform }
let... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/ogc_client_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::OgcClient do
let(:fake_settings) do
OpenStruct.new(
gclaws: OpenStruct.new(
accreditation: OpenStruct.new(
api_key: 'secret-key',
origin: 'https://arp.va.gov',
icn: Ope... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/monitoring_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::Monitoring do
subject { described_class.new(service_name, default_tags:) }
let(:service_name) { 'accredited-representative-portal' }
let(:default_tags) { ['env:test'] }
let(:metric_name) { 'test.metric' }
le... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/poa_request_failure_notifier_spec.rb | # frozen_string_literal: true
require 'rails_helper'
module AccreditedRepresentativePortal
RSpec.describe PoaRequestFailureNotifier do
describe '#call' do
let(:poa_request) { create(:power_of_attorney_request) }
let(:notification_double) { instance_double(PowerOfAttorneyRequestNotification, id: 123)... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/saved_claim_service/attach_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require 'benefits_intake_service/service'
RSpec.describe AccreditedRepresentativePortal::SavedClaimService::Attach do
subject(:perform) { described_class.perform(attachment_klass, file:, form_id:) }
let(:attachment_klass) { PersistentAttachments::VAFormDocume... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/saved_claim_service/create_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require AccreditedRepresentativePortal::Engine.root / 'spec/spec_helper'
RSpec.describe AccreditedRepresentativePortal::SavedClaimService::Create do
subject(:perform) do
described_class.perform(
type: AccreditedRepresentativePortal::SavedClaim::Benefits... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/power_of_attorney_request_service/create_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::PowerOfAttorneyRequestService::Create do
describe '#call' do
subject do
described_class.new(claimant:, form_data:, poa_code:,
registration_number:)
end
let(:claimant) { cr... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/power_of_attorney_request_service/params_schema_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::PowerOfAttorneyRequestService::ParamsSchema do
describe '.validate_and_normalize!' do
subject { described_class.validate_and_normalize!(params) }
context 'with sort by but no sort order' do
let(:params... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/power_of_attorney_request_service/accept_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require 'ostruct'
RSpec.describe AccreditedRepresentativePortal::PowerOfAttorneyRequestService::Accept, type: :service do
subject(:service_call) { described_class.new(poa_request, creator.uuid, memberships).call }
let!(:creator) { create(:representative_us... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/power_of_attorney_request_service | code_files/vets-api-private/modules/accredited_representative_portal/spec/services/accredited_representative_portal/power_of_attorney_request_service/create/form_data_adapter_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccreditedRepresentativePortal::PowerOfAttorneyRequestService::Create::FormDataAdapter do
describe '#call' do
subject { described_class.new(data:, dependent:, service_branch:) }
let(:dependent) { true }
let(:service_branch) { 'ARMY' }
... |
0 | code_files/vets-api-private/modules/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/docs/BENEFITS_INTAKE_CLAIMS.md | # Benefits Intake Claims
|
0 | code_files/vets-api-private/modules/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/lib/accredited_representative_portal.rb | # frozen_string_literal: true
require 'accredited_representative_portal/engine'
module AccreditedRepresentativePortal
# Your code goes here...
end
|
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib | code_files/vets-api-private/modules/accredited_representative_portal/lib/tasks/poa_redaction_dry_run.rake | # frozen_string_literal: true
namespace :accredited_representative_portal do
namespace :poa_redaction do
desc 'Observes (Dry Run) which PowerOfAttorneyRequests would be selected for redaction " \
"without performing the action.'
task dry_run: :environment do
puts 'Starting redaction dry run observa... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib | code_files/vets-api-private/modules/accredited_representative_portal/lib/tasks/seed.rake | # frozen_string_literal: true
require_relative 'seed/records'
namespace :accredited_representative_portal do
desc <<~MSG.squish
Seeds accredited representative and POA request records
MSG
task seed: :environment do
unless Rails.env.development?
Rails.logger.warn(<<~MSG.squish)
Whoops! This... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib | code_files/vets-api-private/modules/accredited_representative_portal/lib/tasks/setup_staging_users.rake | # frozen_string_literal: true
require_relative 'seed/records'
namespace :accredited_representative_portal do
desc <<~MSG.squish
Seeds accredited representative and POA request records
MSG
task setup_staging_users: :environment do
unless ENV['APPLICATION_ENV'] == 'staging'
Rails.logger.warn(<<~MSG.... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib | code_files/vets-api-private/modules/accredited_representative_portal/lib/tasks/staging_seed.rake | # frozen_string_literal: true
require_relative 'seed/staging_seed'
namespace :accredited_representative_portal do
desc 'Seeds POA requests using existing organizations and representatives'
task seed_poa_requests: :environment do
AccreditedRepresentativePortal::StagingSeeds.run
end
end
|
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib/tasks | code_files/vets-api-private/modules/accredited_representative_portal/lib/tasks/seed/staging_seed.rb | # frozen_string_literal: true
require_relative 'staging_seed/methods'
require_relative 'staging_seed/constants'
module AccreditedRepresentativePortal
module StagingSeeds
class << self
include Methods
include Constants
def run
ActiveRecord::Base.transaction do
cleanup_existin... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib/tasks | code_files/vets-api-private/modules/accredited_representative_portal/lib/tasks/seed/records.rb | # frozen_string_literal: true
# rubocop:disable Metrics/ModuleLength
module AccreditedRepresentativePortal
module Seed
module Records
ATTORNEYS = [
{
first_name: 'Robert',
last_name: 'Johnson',
id: '1bb91d6b-4b0e-49bc-a515-762efaa06017',
registration_number: ... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib/tasks/seed | code_files/vets-api-private/modules/accredited_representative_portal/lib/tasks/seed/staging_seed/constants.rb | # frozen_string_literal: true
module AccreditedRepresentativePortal
module StagingSeeds
module Constants
RESOLUTION_HISTORY_CYCLE = %i[expiration decision].cycle
RESOLVED_TIME_TRAVELER =
Enumerator.new do |yielder|
time = 30.days.ago
loop do
yielder << time
... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib/tasks/seed | code_files/vets-api-private/modules/accredited_representative_portal/lib/tasks/seed/staging_seed/methods.rb | # frozen_string_literal: true
module AccreditedRepresentativePortal
module StagingSeeds
RequestOptions = Struct.new(
:org, :rep, :claimant, :resolution_cycle,
:resolved_time, :unresolved_time, :totals, :email_counter,
keyword_init: true
)
module RequestMethods
def create_claimant... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib | code_files/vets-api-private/modules/accredited_representative_portal/lib/accredited_representative_portal/engine.rb | # frozen_string_literal: true
module AccreditedRepresentativePortal
class Engine < ::Rails::Engine
isolate_namespace AccreditedRepresentativePortal
# `isolate_namespace` redefines `table_name_prefix` on load of
# `active_record`, so we append our own callback to redefine it again how we
# want.
... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib | code_files/vets-api-private/modules/accredited_representative_portal/lib/accredited_representative_portal/submission_handler.rb | # frozen_string_literal: true
module AccreditedRepresentativePortal
class SubmissionHandler < ::BenefitsIntake::SubmissionHandler::SavedClaim
def self.pending_attempts
form_ids = AccreditedRepresentativePortal::SavedClaim::BenefitsIntake::FORM_TYPES.map { |klass| klass::FORM_ID }
FormSubmissionAttem... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib | code_files/vets-api-private/modules/accredited_representative_portal/lib/accredited_representative_portal/monitor.rb | # frozen_string_literal: true
module AccreditedRepresentativePortal
class Monitor < ::Logging::BaseMonitor
CLAIM_STATS_KEY = 'api.accredited_representative_portal_claim'
SUBMISSION_STATS_KEY = 'app.accredited_representative_portal.submit_benefits_intake_claim'
attr_reader :tags, :claim
def initiali... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib | code_files/vets-api-private/modules/accredited_representative_portal/lib/accredited_representative_portal/version.rb | # frozen_string_literal: true
module AccreditedRepresentativePortal
VERSION = '0.1.0'
end
|
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib | code_files/vets-api-private/modules/accredited_representative_portal/lib/accredited_representative_portal/notification_email.rb | # frozen_string_literal: true
require 'accredited_representative_portal/notification_callback'
require 'veteran_facing_services/notification_email/saved_claim'
module AccreditedRepresentativePortal
class NotificationEmail < ::VeteranFacingServices::NotificationEmail::SavedClaim
def initialize(saved_claim_id)
... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib | code_files/vets-api-private/modules/accredited_representative_portal/lib/accredited_representative_portal/notification_callback.rb | # frozen_string_literal: true
require 'accredited_representative_portal/monitor'
require 'veteran_facing_services/notification_callback/saved_claim'
module AccreditedRepresentativePortal
# @see ::VeteranFacingServices::NotificationCallback::SavedClaim
class NotificationCallback < ::VeteranFacingServices::Notifica... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/lib/accredited_representative_portal | code_files/vets-api-private/modules/accredited_representative_portal/lib/accredited_representative_portal/zero_silent_failures/manual_remediation.rb | # frozen_string_literal: true
require 'zero_silent_failures/manual_remediation/saved_claim'
module AccreditedRepresentativePortal
module ZeroSilentFailures
# @see ZeroSilentFailures::ManualRemediation::SavedClaim
class ManualRemediation < ::ZeroSilentFailures::ManualRemediation::SavedClaim
private
... |
0 | code_files/vets-api-private/modules/accredited_representative_portal/db | code_files/vets-api-private/modules/accredited_representative_portal/db/migrate/20250121164657_prepare_ar_pos_holder_data.rb | class PrepareArPosHolderData < ActiveRecord::Migration[7.2]
def change
safety_assured do
add_column :ar_power_of_attorney_requests, :accredited_individual_registration_number, :string
add_column :ar_power_of_attorney_requests, :power_of_attorney_holder_poa_code, :string
end
end
end
|
0 | code_files/vets-api-private/modules/accredited_representative_portal/db | code_files/vets-api-private/modules/accredited_representative_portal/db/migrate/20250204175219_add_power_of_attorney_holder_type_constraint.rb | class AddPowerOfAttorneyHolderTypeConstraint < ActiveRecord::Migration[7.2]
disable_ddl_transaction!
def change
add_index :ar_user_account_accredited_individuals,
[:power_of_attorney_holder_type, :user_account_email],
unique: true,
name: 'ar_uniq_power_of_attorney_holder_type_user_account_ema... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.