Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- let uuid = require('uuid');
- let commonUtils = require('../lib/common-utils');
- let ssnNumber = commonUtils.getRandomInt(100000000, 999999999).toString();
- module.exports = {
- applicationTypes: {
- slrPrimary: 'SLR Primary',
- pl: 'Personal'
- },
- // ### Plaid Link
- plaidLinkConnectionData: {
- public_key: '96938e4a921cfbe9a3c4194469d363'
- },
- plaidLinkItemData: {
- credentials: {
- username: 'user_good',
- password: 'pass_good'
- },
- initial_products: [
- 'transactions'
- ],
- institution_id: 'ins_1',
- link_session_id: "{linkSessionId}",
- public_key: '96938e4a921cfbe9a3c4194469d363'
- },
- plaidLinkFinancialAccountData: {
- public_token: "{publicToken}",
- institution: {
- name: 'Bank of America',
- institution_id: 'ins_1'
- },
- link_session_id: "{linkSessionId}"
- },
- // ### Manually linked account
- manualFinancialAccountData: {
- type: 'banking',
- institution_name: 'manual-checking',
- balance: 1000000,
- misc: {
- sub_type: 'checking',
- institution_name: 'manual-checking'
- },
- isDirty: true,
- name: "Checking"
- },
- associateBankAccountData: {
- financial_account_id: 112717,
- routing_number: '121000358',
- account_number: '12345'
- },
- eSignDocumentTemplate: {meta_data:{version:'Electronic-Signature-Policy-v1-2015-06-17.pdf'}},
- forSlrAutoApproval: {
- checkRateData: {
- email: 'flobot+' + uuid.v4() + '@earnest.com',
- password:'Password1!',
- first_name: 'Flo',
- last_name: 'Bot',
- street_1:'Fake Street',
- street_2:null,
- city:'SF',
- state:'CA',
- zip: '94000',
- mobile_phone:'1234567890',
- amount_requested:4000000,
- payment_schedule:'monthly',
- type:'student_loan_refinance',
- reCaptchaResponse: '03AA7ASh3yzfPqsbw9fYUSpFLUO78rew_Y1W7ukkZNhx_9q7zlAXb8cJeWZH7FOw2HmUmJpx720CLwHdDrntVRB5O13hS77K46LC7EcC3aQkOs4JNWiUBjRIIapb2RBywNe8_QNr6Dp2oeE8sYJtClfpUS-loGnFqxvkmewpOkdvX0yuzoseyfPAKdgEoO_JvMYq5206f1921XtCEAjEXwITVPnUn3mHVbSyiVmPAnRhJrLfpDY02Gw4_s0PAz9jRrANprNP-4GZbmZQ0TekwY2F4FS2DZ5QMJZdY0yEAkyNPbHWT27_vFzp_sTm7K7_evtQYQwvmvZCwZb8VgkkLtv3ZXKId1GbYFzcTKK_SZYmAdoQ_XMylbdYc',
- quickScore:{
- stated_income: 7000000,
- stated_savings: 3000000,
- school_name: 'Stanford University',
- school_id: 1526,
- degree_type: 'Bachelors',
- amount_requested: 9000000,
- type: 'slr_primary',
- housing_payment: 100000,
- // ssn: commonUtils.getRandomInt(100000000, 999999999).toString(),
- ssn: ssnNumber,
- grad_month: '07',
- grad_year: '2006',
- residency_end_date: null
- }
- },
- loanDeatilsData: {
- whose_education: 'mine',
- amount_to_refinance: 4000000,
- loan_purpose_degrees:[]
- },
- educationData: {
- whose_education: 'mine',
- history_degrees: [
- {
- school_name: 'Stanford University',
- school_id: 1526,
- degree: 'Bachelors',
- structured_degree: 'Bachelors',
- structured_degree_version: 2,
- field_of_study: 'Math',
- status: 'completed',
- start_date: {
- month: '09',
- year: '2006'
- },
- end_date: {
- month: '05',
- year: '2010'
- }
- }
- ]
- },
- employmentData: {
- total_years_of_experience: '3',
- current_employments: [
- {
- ending_soon: false,
- current_status: 'full_time',
- type: 'employee',
- company_name: 'Test Company',
- title: 'Engineer',
- start_date: {
- month: '07',
- year: '2015'
- }
- }
- ],
- future_employments: [],
- residency_end_date: null
- },
- retirementAssetData: {type: 'retirement', value: 2000000, isDirty: true},
- brokerageAssetData: {type: 'brokerage', value: 1000000, isDirty: true},
- salaryData: {
- id: '{employmentId}',
- salary: 5000000,
- verified_salary: null,
- city: 'SF',
- part_time: null,
- state: 'CA',
- isItemComplete: true,
- income_title: 'flotest Income',
- isDirty: true
- },
- bonusData: {type: 'bonuses', employment_id: '{employmentId}', value: 2000000, actual_index: 0, isDirty: true},
- personalData: {
- date_of_birth: '1980-01-01T08:00:00.000Z',
- ssn: ssnNumber,
- misc: {
- others: {
- living_situation: 'I rent',
- monthly_rent: 100000,
- citizenship_status: 'U.S. Citizen',
- skip_linked_in: true,
- missed_payment_general: false,
- missed_payment_reason: '',
- living_situation_length: true
- }
- }
- },
- paymentBankAccountData: {
- financial_account_id: '{paymentAccountId}',
- routing_number: '121000248',
- account_number: '12345'
- },
- loanServicerData: {
- loan_id: '{loanId}',
- loan_servicer_accounts: [
- {
- payoff_this_account: true,
- ten_day_payoff_amount: 4000000,
- canonical_loan_servicer_id: 100000
- }
- ],
- client_s3_files: [
- {
- name: 'DummyBillingStatement.png',
- emptyData: {},
- data: {
- id: 14355,
- user_id: '{userId}',
- created_at: '2018-05-31T17:09:31.693Z',
- category: 'loan_servicer_statement',
- content_type: 'image/png',
- name: 'DummyBillingStatement.png',
- loan_servicer_id: null
- }
- }
- ],
- canonical_loan_servicer_id: 100000,
- servicerName: "Navient",
- account_number: "9876543210",
- client_s3_file_ids: []
- },
- linkFileData: {
- loan_servicer_id: '{loanServicerId}'
- },
- selectLoanData: {
- payment_amount_requested: '50000',
- rate_type: 'student_refi_fixed'
- },
- initialSnapshotData: {
- autopay_discount_amount: 25,
- payment_amount_requested: '50000',
- term: 2983,
- rate_type: 'student_refi_fixed',
- offer_id: '{loanOfferId}',
- application_id: null
- },
- agreementData: {
- last_four_ssn: '1234',
- opt_out_ach: false,
- signature: 'test signature',
- // date_signed: '2018-06-01T17:27:08.579Z',
- date_signed: new Date().toISOString(),
- right_to_cancel_end_date: null
- }
- },
- forSlrManualApproval: {
- checkRateData: {
- email: 'flobot+' + uuid.v4() + '@earnest.com',
- password:'Password1!',
- first_name: 'Flo',
- last_name: 'Bot',
- street_1:'Fake Street',
- street_2:null,
- city:'SF',
- state:'CA',
- zip: '94000',
- mobile_phone:'1234567890',
- amount_requested:8000000,
- payment_schedule:'monthly',
- type:'student_loan_refinance',
- reCaptchaResponse: '03AA7ASh3yzfPqsbw9fYUSpFLUO78rew_Y1W7ukkZNhx_9q7zlAXb8cJeWZH7FOw2HmUmJpx720CLwHdDrntVRB5O13hS77K46LC7EcC3aQkOs4JNWiUBjRIIapb2RBywNe8_QNr6Dp2oeE8sYJtClfpUS-loGnFqxvkmewpOkdvX0yuzoseyfPAKdgEoO_JvMYq5206f1921XtCEAjEXwITVPnUn3mHVbSyiVmPAnRhJrLfpDY02Gw4_s0PAz9jRrANprNP-4GZbmZQ0TekwY2F4FS2DZ5QMJZdY0yEAkyNPbHWT27_vFzp_sTm7K7_evtQYQwvmvZCwZb8VgkkLtv3ZXKId1GbYFzcTKK_SZYmAdoQ_XMylbdYc',
- quickScore:{
- stated_income: 25500000,
- stated_savings: 8000000,
- school_name: 'Stanford University',
- school_id: 1526,
- degree_type: 'Bachelors',
- amount_requested: 8000000,
- type: 'slr_primary',
- housing_payment: 300000,
- ssn: ssnNumber,
- grad_month: '07',
- grad_year: '2006',
- residency_end_date: null
- }
- },
- loanDeatilsData: {
- whose_education: 'mine',
- amount_to_refinance: 8000000,
- loan_purpose_degrees:[]
- },
- educationData: {
- whose_education: 'mine',
- history_degrees: [
- {
- school_name: 'Stanford University',
- school_id: 1526,
- degree: 'Bachelors',
- structured_degree: 'Bachelors',
- structured_degree_version: 2,
- field_of_study: 'Math',
- status: 'completed',
- start_date: {
- month: '09',
- year: '2006'
- },
- end_date: {
- month: '05',
- year: '2010'
- }
- }
- ]
- },
- employmentData: {
- total_years_of_experience: '3',
- current_employments: [
- {
- ending_soon: false,
- current_status: 'full_time',
- type: 'employee',
- company_name: 'Test Company',
- title: 'Engineer',
- start_date: {
- month: '07',
- year: '2015'
- }
- }
- ],
- future_employments: [],
- residency_end_date: null
- },
- retirementAssetData: {type: 'retirement', value: 4000000, isDirty: true},
- brokerageAssetData: {type: 'brokerage', value: 4000000, isDirty: true},
- salaryData: {
- id: '{employmentId}',
- salary: 15500000,
- verified_salary: null,
- city: 'SF',
- part_time: null,
- state: 'CA',
- isItemComplete: true,
- income_title: 'flotest Income',
- isDirty: true
- },
- bonusData: {type: 'bonuses', employment_id: '{employmentId}', value: 10000000, actual_index: 0, isDirty: true},
- personalData: {
- date_of_birth: '1980-01-01T08:00:00.000Z',
- ssn: ssnNumber,
- misc: {
- others: {
- living_situation: 'I rent',
- monthly_rent: 100000,
- citizenship_status: 'U.S. Citizen',
- skip_linked_in: true,
- missed_payment_general: false,
- missed_payment_reason: '',
- living_situation_length: true
- }
- }
- }
- },
- forPl: {
- userData: {
- email: 'pedroortega+' + Math.random(1000, 9999) + '@earnest.com',
- password:'Password1!',
- first_name: 'Gleiry',
- last_name: 'Wong',
- reCaptchaResponse: '03AA7ASh3yzfPqsbw9fYUSpFLUO78rew_Y1W7ukkZNhx_9q7zlAXb8cJeWZH7FOw2HmUmJpx720CLwHdDrntVRB5O13hS77K46LC7EcC3aQkOs4JNWiUBjRIIapb2RBywNe8_QNr6Dp2oeE8sYJtClfpUS-loGnFqxvkmewpOkdvX0yuzoseyfPAKdgEoO_JvMYq5206f1921XtCEAjEXwITVPnUn3mHVbSyiVmPAnRhJrLfpDY02Gw4_s0PAz9jRrANprNP-4GZbmZQ0TekwY2F4FS2DZ5QMJZdY0yEAkyNPbHWT27_vFzp_sTm7K7_evtQYQwvmvZCwZb8VgkkLtv3ZXKId1GbYFzcTKK_SZYmAdoQ_XMylbdYc',
- state: 'CA',
- amount_requested: 1000000,
- amount_paid: 0,
- bank_account: {},
- status: 'apply',
- interest_rate: null,
- term: 1096, //1826, 1460, 1096
- days_per_year: 365,
- payment_schedule: 'monthly',
- transactions: [],
- tax_amount: 0,
- reject_reasons: [],
- payment_events: [],
- type: 'personal',
- full_payment_schedule: [],
- full_loan_history: [],
- summary_payment_schedule: [],
- current_loan_calculations: {},
- expected_loan_calculations: {},
- payoff_amounts: [],
- invalid_payment_dates: [],
- maximum_apr_version: {},
- primary: {},
- cosigner: {},
- degree_start_date: null,
- self_certification: {},
- show_sync_ai: true,
- misc: {
- category: 'home_improvement',
- home_improvement_type: 'Furniture / Redecorating',
- improvement_ownership: true,
- home_improvement_cost: 2000000,
- program_start_date: {
- year: '',
- month: '',
- day: ''
- },
- program_end_date: {
- year: '',
- month: '',
- day: ''
- },
- referrer: 'https://www.staging.earnest.com/'
- },
- application: {},
- applications: [
- {}
- ],
- loanMisc: {
- category: 'home_improvement',
- home_improvement_type: 'Furniture / Redecorating',
- improvement_ownership: true,
- home_improvement_cost: 2000000,
- program_start_date: {
- year: '',
- month: '',
- day: ''
- },
- program_end_date: {
- year: '',
- month: '',
- day: ''
- },
- referrer: 'https://www.staging.earnest.com/'
- },
- createLoan: true
- },
- educationData: {
- structured_degree: 'High School',
- structured_degree_version: '',
- field_of_study: 'General',
- school_name: 'CHOICE High School and Technical Center',
- start_date: {
- year: '2000',
- month: '09'
- },
- end_date: {
- year: '2003',
- month: '07'
- },
- status: 'completed',
- school_id: 74,
- isDirty: true
- },
- employmentData: {
- title: 'Engineer',
- company_name: 'Edimburgo Investigation Center',
- start_date: {
- year: '2014',
- month: '01'
- },
- end_date: {},
- linkedin_id: '',
- type: 'full_time',
- status: 'current',
- city: 'SF',
- state: 'CA',
- isDirty: true,
- misc: {
- ending_soon: false
- }
- },
- retirementAssetData: {type: 'retirement', value: 1500000},
- brokerageAssetData: {type: 'brokerage', value: 1000000},
- salaryData: {
- id: '{employmentId}',
- salary: 10000000,
- verified_salary: null,
- city: 'SF',
- part_time: null,
- state: 'CA',
- isItemComplete: true,
- income_title: 'flotest Income',
- isDirty: true
- },
- bonusData: {type: 'bonuses', employment_id: '{employmentId}', value: 1000000, actual_index: 0, isDirty: true},
- personalData: {
- date_of_birth: '1993-01-05',
- ssn: ssnNumber,
- mobile_phone: '9998887777',
- street_1: '99 S 100 E St',
- street_2: null,
- city: 'Fayette',
- state: 'UT',
- zip: '84630',
- misc: {
- others: {
- living_situation: 'I own',
- monthly_mortgage_payment: 200000,
- number_of_dependents: '1',
- citizenship_status: 'U.S. Citizen',
- skip_linked_in: true,
- missed_payment_general: false,
- missed_payment_reason: '',
- living_situation_length: true
- }
- }
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement