stand_socotra_policy_transformer 3.0.7 → 3.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,8 +3,8 @@ const path = require('path');
3
3
 
4
4
  function load_payload(file_path) {
5
5
  // Resolve the absolute path
6
- // const filePath = path.resolve(__dirname, file_path);
7
- const rawData = fs.readFileSync(file_path);
6
+ const filePath = path.resolve(__dirname, '../../', file_path);
7
+ const rawData = fs.readFileSync(filePath);
8
8
 
9
9
  return JSON.parse(rawData);
10
10
  }
@@ -13,4 +13,4 @@ test('dummy test', () => {
13
13
  expect(true).toBeTruthy();
14
14
  });
15
15
 
16
- module.exports = {load_payload}
16
+ module.exports = {load_payload}
@@ -0,0 +1,68 @@
1
+ {
2
+ "socotra_config_version": 11,
3
+ "owner_first_name": "Molly",
4
+ "seasonal": "No",
5
+ "zip": 92067,
6
+ "distance_to_fire_department": 2,
7
+ "water_damage_limit": 0.03,
8
+ "claims_data": {
9
+ "claims": [
10
+ {
11
+ "date": "2020-11-12",
12
+ "description": "Someone slipped on my bannana tree",
13
+ "amount": 5000,
14
+ "type": "Liability"
15
+ }
16
+ ]
17
+ },
18
+ "claims": [],
19
+ "is_pay_in_full": true,
20
+ "premium_initial_indication": 51731.54,
21
+ "secondary_residence": "No",
22
+ "owner_last_name": "Moon",
23
+ "mitigation_category": "ember_and_fire",
24
+ "distributor_notes": "lkjlkjlkjlk",
25
+ "coverage_e": 500000,
26
+ "months_unoccupied": 0,
27
+ "num_bath": 4,
28
+ "purchase_year": 2020,
29
+ "coverage_f": 25000,
30
+ "additional_insured_data": {
31
+ "additionalInterest": [
32
+ {
33
+ "zip": "94104",
34
+ "commercial_exposure": "No",
35
+ "street_address": "548 Market Street",
36
+ "loan_number": "123122",
37
+ "city": "San Francisco",
38
+ "entity_details": "Estate Planning",
39
+ "name": "Nicks LLC",
40
+ "street_address2": "PMB 70879",
41
+ "state": "California",
42
+ "type": "LLC Name"
43
+ },
44
+ {
45
+ "street_address2": "PMB 70879",
46
+ "zip": "94104",
47
+ "street_address": "548 Market Street",
48
+ "state": "California",
49
+ "type": "Other Additional Interest",
50
+ "city": "San Francisco"
51
+ }
52
+ ]
53
+ },
54
+ "norm_zesty": "20%",
55
+ "norm_bellweather": "110%",
56
+ "owner_email": "nick+pdfsl231@getstand.com",
57
+ "norm_core_logic": "71%",
58
+ "fence": "Yes - wood fence",
59
+ "claims_json": [],
60
+ "norm_gre": "65%",
61
+ "bellweather_wf_score": 0.017033,
62
+ "mean_level": "High",
63
+ "presence_of_pool": "No",
64
+ "form": "Modified HO-5",
65
+ "premium_calculated": 52891.29,
66
+ "lead_source": "Distributor",
67
+ "producer_id": 15
68
+ }