Files
monorepo/LCU.WebApps.External.OnlineLoanApp/src/app/testing/shared-mocks/test-api-loan-container.ts
T
2026-03-25 11:54:22 -05:00

157 lines
4.5 KiB
TypeScript

import { LoanCode } from 'src/app/shared/loan-type/loan-code';
import { ApiLoanContainer } from 'src/app/shared/api-models/api-loan-container';
import { ApiStatus } from 'src/app/shared/api-models/api-status';
import { ApiError, ApiErrorCode } from 'src/app/shared/api-models/api-error';
import { CreditApplication } from '../../shared/credit-application';
import { LoanTypeSet } from '../../shared/loan-type';
export const TestTranslateCreditApplication: any = {
'loanType': LoanTypeSet[13],
'hasBeenCompleted': false,
'fullInfoBorrowers': [{
'priorAddressInformation': [],
'priorResidenceInformation': [],
'addressInformation': {
'addressLine1': '5445 S Westridge Dr',
'addressLine2': '',
'city': 'New Berlin',
'state': 'WI',
'zipcode': '53151'
},
'residenceInformation': {
'residenceMonthlyPayment': 750,
'residenceStatus': 0,
'residenceTimeMonths': '0',
'residenceTimeYears': '6',
'isMailingAddressSame': true
},
'personalInformation': {
'firstName': 'JOHN',
'middleInitial': 'P',
'lastName': 'DOE',
'dateOfBirth': '01/01/1970',
'socialSecurityNumber': '999-99-9990',
'primaryPhoneNumberType': 1,
'primaryPhoneNumber': '262-796-1100',
'secondaryPhoneNumberType': 1,
'secondaryPhoneNumber': '262-796-6370',
'email': '[email protected]'
},
'ethnicityInformation': {'otherHispanicLatinoText': null},
'genderInformation': {},
'raceInformation': {'americanIndianAlaskaNativeText': null, 'otherAsianText': null, 'otherPacificIslanderText': null}
}],
'hasCoApplicant': 'no',
'hasCoApplicantSpouse': null,
'primaryContactMethod': null,
// 'applicantType': 'no',
'limitRequested': 5555,
// 'livesInMaritalPropertyState': 'yes',
'coApplicantLivesInMaritalPropertyState': 'no',
'purposeOfLoan': 'Other',
'termOfLoan': 12,
'page': null,
'status': null,
'error': null
};
export const TestApiLoanContainer: ApiLoanContainer = {
'memberId': '1231',
'individualId': '1231',
'loanApplication': {
'id': '0',
'loanType': LoanCode.CC_CashBack,
'note': 'This is a note!',
'primaryContactMethod': '262-623-8990',
'requestedAmount': 1000,
'date': '2018-07-23',
'primaryBorrower': {
'hasOptedOutTCPA': false,
'firstName': 'Dennis',
'middleInitial': 'J',
'lastName': 'Reynolds',
'dob': '2018-07-23T19:29:57.744Z',
'ssn': '123123123',
'phone': '2622221215',
'phoneType': 'Mobile',
'email': '[email protected]',
'address': {
'address1': '12123 Apple Lane',
'address2': null,
'city': 'Milwaukee',
'state': 'WI',
'postalCode': '53033',
'country': 'UnitedStates',
'monthlyPayment': 2222,
'monthsResided': 84,
'residenceType': 'Own',
'id': '9e178efa'
},
'previousAddresses': [],
'employers': null,
'otherIncomes': null,
'isMarried': false,
'language': 'English',
'customerNumber': '0',
'id': 'a60d'
},
'coApplicant':
{
'hasOptedOutTCPA': false,
'firstName': 'John',
'middleInitial': 'M',
'lastName': 'Wick',
'dob': '2018-07-23T19:29:57.744Z',
'ssn': '355096548',
'phone': '2316454567',
'phoneType': 'Mobile',
'email': '[email protected]',
'address': {
'address1': '1243 Sugar Road',
'address2': null,
'city': 'Sussex',
'state': 'WI',
'postalCode': '53211',
'country': 'UnitedStates',
'monthlyPayment': 800,
'monthsResided': 24,
'residenceType': 'Own',
'id': 'fja23s'
},
'previousAddresses': null,
'employers': null,
'otherIncomes': null,
'isMarried': false,
'language': 'English',
'customerNumber': '0',
'id': '12sd41'
}
},
'page': {
'hasAddress': true,
'hasEmployment': true,
'hasPersonal': true,
'hasMemberInfo': true,
'hasSpouseInfo': true,
'hasTattleSpouseInfo': true,
'hasResidenceInfo': true,
'hasVehicleCollateral': true,
'hasHMDA': true,
'hasDisclosure': true,
'hasCollateralInfo': true,
'hasNote': true
},
'status': ApiStatus.IN_PROGRESS,
'error': {
code: ApiErrorCode.No_Error,
message: 'No Errors'
},
'date': new Date(),
'id': '12341234',
'loanId': '12341234',
'loanType': LoanCode.CC_CashBack,
'branch': 'milwaukee',
'firstName': 'john',
'lastName': 'sanders'
};