Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2018
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.03 KB | None | 0 0
  1. 'use strict';
  2. let uuid = require('uuid');
  3. let commonUtils = require('../lib/common-utils');
  4. let ssnNumber = commonUtils.getRandomInt(100000000, 999999999).toString();
  5.  
  6. module.exports = {
  7. applicationTypes: {
  8. slrPrimary: 'SLR Primary',
  9. pl: 'Personal'
  10. },
  11.  
  12. // ### Plaid Link
  13. plaidLinkConnectionData: {
  14. public_key: '96938e4a921cfbe9a3c4194469d363'
  15. },
  16.  
  17. plaidLinkItemData: {
  18. credentials: {
  19. username: 'user_good',
  20. password: 'pass_good'
  21. },
  22. initial_products: [
  23. 'transactions'
  24. ],
  25. institution_id: 'ins_1',
  26. link_session_id: "{linkSessionId}",
  27. public_key: '96938e4a921cfbe9a3c4194469d363'
  28. },
  29.  
  30. plaidLinkFinancialAccountData: {
  31. public_token: "{publicToken}",
  32. institution: {
  33. name: 'Bank of America',
  34. institution_id: 'ins_1'
  35. },
  36. link_session_id: "{linkSessionId}"
  37. },
  38.  
  39. // ### Manually linked account
  40. manualFinancialAccountData: {
  41. type: 'banking',
  42. institution_name: 'manual-checking',
  43. balance: 1000000,
  44. misc: {
  45. sub_type: 'checking',
  46. institution_name: 'manual-checking'
  47. },
  48. isDirty: true,
  49. name: "Checking"
  50. },
  51.  
  52. associateBankAccountData: {
  53. financial_account_id: 112717,
  54. routing_number: '121000358',
  55. account_number: '12345'
  56. },
  57.  
  58. eSignDocumentTemplate: {meta_data:{version:'Electronic-Signature-Policy-v1-2015-06-17.pdf'}},
  59.  
  60.  
  61. forSlrAutoApproval: {
  62. checkRateData: {
  63. email: 'flobot+' + uuid.v4() + '@earnest.com',
  64. password:'Password1!',
  65. first_name: 'Flo',
  66. last_name: 'Bot',
  67. street_1:'Fake Street',
  68. street_2:null,
  69. city:'SF',
  70. state:'CA',
  71. zip: '94000',
  72. mobile_phone:'1234567890',
  73. amount_requested:4000000,
  74. payment_schedule:'monthly',
  75. type:'student_loan_refinance',
  76. reCaptchaResponse: '03AA7ASh3yzfPqsbw9fYUSpFLUO78rew_Y1W7ukkZNhx_9q7zlAXb8cJeWZH7FOw2HmUmJpx720CLwHdDrntVRB5O13hS77K46LC7EcC3aQkOs4JNWiUBjRIIapb2RBywNe8_QNr6Dp2oeE8sYJtClfpUS-loGnFqxvkmewpOkdvX0yuzoseyfPAKdgEoO_JvMYq5206f1921XtCEAjEXwITVPnUn3mHVbSyiVmPAnRhJrLfpDY02Gw4_s0PAz9jRrANprNP-4GZbmZQ0TekwY2F4FS2DZ5QMJZdY0yEAkyNPbHWT27_vFzp_sTm7K7_evtQYQwvmvZCwZb8VgkkLtv3ZXKId1GbYFzcTKK_SZYmAdoQ_XMylbdYc',
  77. quickScore:{
  78. stated_income: 7000000,
  79. stated_savings: 3000000,
  80. school_name: 'Stanford University',
  81. school_id: 1526,
  82. degree_type: 'Bachelors',
  83. amount_requested: 9000000,
  84. type: 'slr_primary',
  85. housing_payment: 100000,
  86. // ssn: commonUtils.getRandomInt(100000000, 999999999).toString(),
  87. ssn: ssnNumber,
  88. grad_month: '07',
  89. grad_year: '2006',
  90. residency_end_date: null
  91. }
  92. },
  93.  
  94. loanDeatilsData: {
  95. whose_education: 'mine',
  96. amount_to_refinance: 4000000,
  97. loan_purpose_degrees:[]
  98. },
  99.  
  100. educationData: {
  101. whose_education: 'mine',
  102. history_degrees: [
  103. {
  104. school_name: 'Stanford University',
  105. school_id: 1526,
  106. degree: 'Bachelors',
  107. structured_degree: 'Bachelors',
  108. structured_degree_version: 2,
  109. field_of_study: 'Math',
  110. status: 'completed',
  111. start_date: {
  112. month: '09',
  113. year: '2006'
  114. },
  115. end_date: {
  116. month: '05',
  117. year: '2010'
  118. }
  119. }
  120. ]
  121. },
  122.  
  123. employmentData: {
  124. total_years_of_experience: '3',
  125. current_employments: [
  126. {
  127. ending_soon: false,
  128. current_status: 'full_time',
  129. type: 'employee',
  130. company_name: 'Test Company',
  131. title: 'Engineer',
  132. start_date: {
  133. month: '07',
  134. year: '2015'
  135. }
  136. }
  137. ],
  138. future_employments: [],
  139. residency_end_date: null
  140. },
  141.  
  142. retirementAssetData: {type: 'retirement', value: 2000000, isDirty: true},
  143.  
  144. brokerageAssetData: {type: 'brokerage', value: 1000000, isDirty: true},
  145.  
  146. salaryData: {
  147. id: '{employmentId}',
  148. salary: 5000000,
  149. verified_salary: null,
  150. city: 'SF',
  151. part_time: null,
  152. state: 'CA',
  153. isItemComplete: true,
  154. income_title: 'flotest Income',
  155. isDirty: true
  156. },
  157.  
  158. bonusData: {type: 'bonuses', employment_id: '{employmentId}', value: 2000000, actual_index: 0, isDirty: true},
  159.  
  160. personalData: {
  161. date_of_birth: '1980-01-01T08:00:00.000Z',
  162. ssn: ssnNumber,
  163. misc: {
  164. others: {
  165. living_situation: 'I rent',
  166. monthly_rent: 100000,
  167. citizenship_status: 'U.S. Citizen',
  168. skip_linked_in: true,
  169. missed_payment_general: false,
  170. missed_payment_reason: '',
  171. living_situation_length: true
  172. }
  173. }
  174. },
  175.  
  176. paymentBankAccountData: {
  177. financial_account_id: '{paymentAccountId}',
  178. routing_number: '121000248',
  179. account_number: '12345'
  180. },
  181.  
  182. loanServicerData: {
  183. loan_id: '{loanId}',
  184. loan_servicer_accounts: [
  185. {
  186. payoff_this_account: true,
  187. ten_day_payoff_amount: 4000000,
  188. canonical_loan_servicer_id: 100000
  189. }
  190. ],
  191. client_s3_files: [
  192. {
  193. name: 'DummyBillingStatement.png',
  194. emptyData: {},
  195. data: {
  196. id: 14355,
  197. user_id: '{userId}',
  198. created_at: '2018-05-31T17:09:31.693Z',
  199. category: 'loan_servicer_statement',
  200. content_type: 'image/png',
  201. name: 'DummyBillingStatement.png',
  202. loan_servicer_id: null
  203. }
  204. }
  205. ],
  206. canonical_loan_servicer_id: 100000,
  207. servicerName: "Navient",
  208. account_number: "9876543210",
  209. client_s3_file_ids: []
  210. },
  211.  
  212. linkFileData: {
  213. loan_servicer_id: '{loanServicerId}'
  214. },
  215.  
  216. selectLoanData: {
  217. payment_amount_requested: '50000',
  218. rate_type: 'student_refi_fixed'
  219. },
  220.  
  221. initialSnapshotData: {
  222. autopay_discount_amount: 25,
  223. payment_amount_requested: '50000',
  224. term: 2983,
  225. rate_type: 'student_refi_fixed',
  226. offer_id: '{loanOfferId}',
  227. application_id: null
  228. },
  229.  
  230. agreementData: {
  231. last_four_ssn: '1234',
  232. opt_out_ach: false,
  233. signature: 'test signature',
  234. // date_signed: '2018-06-01T17:27:08.579Z',
  235. date_signed: new Date().toISOString(),
  236. right_to_cancel_end_date: null
  237. }
  238. },
  239.  
  240. forSlrManualApproval: {
  241. checkRateData: {
  242. email: 'flobot+' + uuid.v4() + '@earnest.com',
  243. password:'Password1!',
  244. first_name: 'Flo',
  245. last_name: 'Bot',
  246. street_1:'Fake Street',
  247. street_2:null,
  248. city:'SF',
  249. state:'CA',
  250. zip: '94000',
  251. mobile_phone:'1234567890',
  252. amount_requested:8000000,
  253. payment_schedule:'monthly',
  254. type:'student_loan_refinance',
  255. reCaptchaResponse: '03AA7ASh3yzfPqsbw9fYUSpFLUO78rew_Y1W7ukkZNhx_9q7zlAXb8cJeWZH7FOw2HmUmJpx720CLwHdDrntVRB5O13hS77K46LC7EcC3aQkOs4JNWiUBjRIIapb2RBywNe8_QNr6Dp2oeE8sYJtClfpUS-loGnFqxvkmewpOkdvX0yuzoseyfPAKdgEoO_JvMYq5206f1921XtCEAjEXwITVPnUn3mHVbSyiVmPAnRhJrLfpDY02Gw4_s0PAz9jRrANprNP-4GZbmZQ0TekwY2F4FS2DZ5QMJZdY0yEAkyNPbHWT27_vFzp_sTm7K7_evtQYQwvmvZCwZb8VgkkLtv3ZXKId1GbYFzcTKK_SZYmAdoQ_XMylbdYc',
  256. quickScore:{
  257. stated_income: 25500000,
  258. stated_savings: 8000000,
  259. school_name: 'Stanford University',
  260. school_id: 1526,
  261. degree_type: 'Bachelors',
  262. amount_requested: 8000000,
  263. type: 'slr_primary',
  264. housing_payment: 300000,
  265. ssn: ssnNumber,
  266. grad_month: '07',
  267. grad_year: '2006',
  268. residency_end_date: null
  269. }
  270. },
  271.  
  272. loanDeatilsData: {
  273. whose_education: 'mine',
  274. amount_to_refinance: 8000000,
  275. loan_purpose_degrees:[]
  276. },
  277.  
  278. educationData: {
  279. whose_education: 'mine',
  280. history_degrees: [
  281. {
  282. school_name: 'Stanford University',
  283. school_id: 1526,
  284. degree: 'Bachelors',
  285. structured_degree: 'Bachelors',
  286. structured_degree_version: 2,
  287. field_of_study: 'Math',
  288. status: 'completed',
  289. start_date: {
  290. month: '09',
  291. year: '2006'
  292. },
  293. end_date: {
  294. month: '05',
  295. year: '2010'
  296. }
  297. }
  298. ]
  299. },
  300.  
  301. employmentData: {
  302. total_years_of_experience: '3',
  303. current_employments: [
  304. {
  305. ending_soon: false,
  306. current_status: 'full_time',
  307. type: 'employee',
  308. company_name: 'Test Company',
  309. title: 'Engineer',
  310. start_date: {
  311. month: '07',
  312. year: '2015'
  313. }
  314. }
  315. ],
  316. future_employments: [],
  317. residency_end_date: null
  318. },
  319.  
  320. retirementAssetData: {type: 'retirement', value: 4000000, isDirty: true},
  321.  
  322. brokerageAssetData: {type: 'brokerage', value: 4000000, isDirty: true},
  323.  
  324. salaryData: {
  325. id: '{employmentId}',
  326. salary: 15500000,
  327. verified_salary: null,
  328. city: 'SF',
  329. part_time: null,
  330. state: 'CA',
  331. isItemComplete: true,
  332. income_title: 'flotest Income',
  333. isDirty: true
  334. },
  335.  
  336. bonusData: {type: 'bonuses', employment_id: '{employmentId}', value: 10000000, actual_index: 0, isDirty: true},
  337.  
  338. personalData: {
  339. date_of_birth: '1980-01-01T08:00:00.000Z',
  340. ssn: ssnNumber,
  341. misc: {
  342. others: {
  343. living_situation: 'I rent',
  344. monthly_rent: 100000,
  345. citizenship_status: 'U.S. Citizen',
  346. skip_linked_in: true,
  347. missed_payment_general: false,
  348. missed_payment_reason: '',
  349. living_situation_length: true
  350. }
  351. }
  352. }
  353. },
  354.  
  355. forPl: {
  356. userData: {
  357. email: 'pedroortega+' + Math.random(1000, 9999) + '@earnest.com',
  358. password:'Password1!',
  359. first_name: 'Gleiry',
  360. last_name: 'Wong',
  361. reCaptchaResponse: '03AA7ASh3yzfPqsbw9fYUSpFLUO78rew_Y1W7ukkZNhx_9q7zlAXb8cJeWZH7FOw2HmUmJpx720CLwHdDrntVRB5O13hS77K46LC7EcC3aQkOs4JNWiUBjRIIapb2RBywNe8_QNr6Dp2oeE8sYJtClfpUS-loGnFqxvkmewpOkdvX0yuzoseyfPAKdgEoO_JvMYq5206f1921XtCEAjEXwITVPnUn3mHVbSyiVmPAnRhJrLfpDY02Gw4_s0PAz9jRrANprNP-4GZbmZQ0TekwY2F4FS2DZ5QMJZdY0yEAkyNPbHWT27_vFzp_sTm7K7_evtQYQwvmvZCwZb8VgkkLtv3ZXKId1GbYFzcTKK_SZYmAdoQ_XMylbdYc',
  362. state: 'CA',
  363. amount_requested: 1000000,
  364. amount_paid: 0,
  365. bank_account: {},
  366. status: 'apply',
  367. interest_rate: null,
  368. term: 1096, //1826, 1460, 1096
  369. days_per_year: 365,
  370. payment_schedule: 'monthly',
  371. transactions: [],
  372. tax_amount: 0,
  373. reject_reasons: [],
  374. payment_events: [],
  375. type: 'personal',
  376. full_payment_schedule: [],
  377. full_loan_history: [],
  378. summary_payment_schedule: [],
  379. current_loan_calculations: {},
  380. expected_loan_calculations: {},
  381. payoff_amounts: [],
  382. invalid_payment_dates: [],
  383. maximum_apr_version: {},
  384. primary: {},
  385. cosigner: {},
  386. degree_start_date: null,
  387. self_certification: {},
  388. show_sync_ai: true,
  389. misc: {
  390. category: 'home_improvement',
  391. home_improvement_type: 'Furniture / Redecorating',
  392. improvement_ownership: true,
  393. home_improvement_cost: 2000000,
  394. program_start_date: {
  395. year: '',
  396. month: '',
  397. day: ''
  398. },
  399. program_end_date: {
  400. year: '',
  401. month: '',
  402. day: ''
  403. },
  404. referrer: 'https://www.staging.earnest.com/'
  405. },
  406. application: {},
  407. applications: [
  408. {}
  409. ],
  410. loanMisc: {
  411. category: 'home_improvement',
  412. home_improvement_type: 'Furniture / Redecorating',
  413. improvement_ownership: true,
  414. home_improvement_cost: 2000000,
  415. program_start_date: {
  416. year: '',
  417. month: '',
  418. day: ''
  419. },
  420. program_end_date: {
  421. year: '',
  422. month: '',
  423. day: ''
  424. },
  425. referrer: 'https://www.staging.earnest.com/'
  426. },
  427. createLoan: true
  428. },
  429.  
  430. educationData: {
  431. structured_degree: 'High School',
  432. structured_degree_version: '',
  433. field_of_study: 'General',
  434. school_name: 'CHOICE High School and Technical Center',
  435. start_date: {
  436. year: '2000',
  437. month: '09'
  438. },
  439. end_date: {
  440. year: '2003',
  441. month: '07'
  442. },
  443. status: 'completed',
  444. school_id: 74,
  445. isDirty: true
  446. },
  447.  
  448. employmentData: {
  449. title: 'Engineer',
  450. company_name: 'Edimburgo Investigation Center',
  451. start_date: {
  452. year: '2014',
  453. month: '01'
  454. },
  455. end_date: {},
  456. linkedin_id: '',
  457. type: 'full_time',
  458. status: 'current',
  459. city: 'SF',
  460. state: 'CA',
  461. isDirty: true,
  462. misc: {
  463. ending_soon: false
  464. }
  465. },
  466.  
  467. retirementAssetData: {type: 'retirement', value: 1500000},
  468.  
  469. brokerageAssetData: {type: 'brokerage', value: 1000000},
  470.  
  471. salaryData: {
  472. id: '{employmentId}',
  473. salary: 10000000,
  474. verified_salary: null,
  475. city: 'SF',
  476. part_time: null,
  477. state: 'CA',
  478. isItemComplete: true,
  479. income_title: 'flotest Income',
  480. isDirty: true
  481. },
  482.  
  483. bonusData: {type: 'bonuses', employment_id: '{employmentId}', value: 1000000, actual_index: 0, isDirty: true},
  484.  
  485. personalData: {
  486. date_of_birth: '1993-01-05',
  487. ssn: ssnNumber,
  488. mobile_phone: '9998887777',
  489. street_1: '99 S 100 E St',
  490. street_2: null,
  491. city: 'Fayette',
  492. state: 'UT',
  493. zip: '84630',
  494. misc: {
  495. others: {
  496. living_situation: 'I own',
  497. monthly_mortgage_payment: 200000,
  498. number_of_dependents: '1',
  499. citizenship_status: 'U.S. Citizen',
  500. skip_linked_in: true,
  501. missed_payment_general: false,
  502. missed_payment_reason: '',
  503. living_situation_length: true
  504. }
  505. }
  506. }
  507. }
  508. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement