smartystreets-javascript-sdk 5.0.1 → 5.1.0

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.
@@ -0,0 +1,559 @@
1
+ class Response {
2
+ constructor(responseData) {
3
+ this.smartyKey = responseData.smarty_key;
4
+ this.dataSetName = responseData.data_set_name;
5
+ this.dataSubsetName = responseData.data_subset_name;
6
+
7
+ this.attributes = {};
8
+ if (responseData.attributes) {
9
+ this.attributes.firstFloorSqft = responseData.attributes["1st_floor_sqft"];
10
+ this.attributes.secondFlootSqft = responseData.attributes["2nd_floor_sqft"];
11
+ this.attributes.acres = responseData.attributes.acres;
12
+ this.attributes.addressInfoPrivacy = responseData.attributes.address_info_privacy;
13
+ this.attributes.airConditioner = responseData.attributes.air_conditioner;
14
+ this.attributes.arborPergola = responseData.attributes.arbor_pergola;
15
+ this.attributes.assessedImprovementPercent = responseData.attributes.assessed_improvement_percent;
16
+ this.attributes.assessedImprovementValue = responseData.attributes.assessed_improvement_value;
17
+ this.attributes.assessedLandValue = responseData.attributes.assessed_land_value;
18
+ this.attributes.assessedValue = responseData.attributes.assessed_value;
19
+ this.attributes.assessorLastUpdate = responseData.attributes.assessor_last_update;
20
+ this.attributes.assessorTaxrollUpdate = responseData.attributes.assessor_taxroll_update;
21
+ this.attributes.atticArea = responseData.attributes.attic_area;
22
+ this.attributes.atticFlag = responseData.attributes.attic_flag;
23
+ this.attributes.balcony = responseData.attributes.balcony;
24
+ this.attributes.balconyArea = responseData.attributes.balcony_area;
25
+ this.attributes.basementSqft = responseData.attributes.basement_sqft;
26
+ this.attributes.basementSqftFinished = responseData.attributes.basement_sqft_finished;
27
+ this.attributes.basementsqftUnfinished = responseData.attributes.basement_sqft_unfinished;
28
+ this.attributes.bathHouse = responseData.attributes.bath_house;
29
+ this.attributes.bathHouseSqft = responseData.attributes.bath_house_sqft;
30
+ this.attributes.bathroomsPartial = responseData.attributes.bathrooms_partial;
31
+ this.attributes.bathroomsTotal = responseData.attributes.bathrooms_total;
32
+ this.attributes.bedrooms = responseData.attributes.bedrooms;
33
+ this.attributes.block1 = responseData.attributes.block_1;
34
+ this.attributes.block2 = responseData.attributes.block_2;
35
+ this.attributes.boatAccess = responseData.attributes.boat_access;
36
+ this.attributes.boatHouse = responseData.attributes.boat_house;
37
+ this.attributes.boatHouseSqft = responseData.attributes.boat_house_sqft;
38
+ this.attributes.boatLift = responseData.attributes.boat_lift;
39
+ this.attributes.bonusRoom = responseData.attributes.bonus_room;
40
+ this.attributes.breakfastNook = responseData.attributes.breakfast_nook;
41
+ this.attributes.breezeway = responseData.attributes.breezeway;
42
+ this.attributes.buildingDefinitionCode = responseData.attributes.building_definition;
43
+ this.attributes.buildingSqft = responseData.attributes.building_sqft;
44
+ this.attributes.cabin = responseData.attributes.cabin;
45
+ this.attributes.cabinSqft = responseData.attributes.cabin_sqft;
46
+ this.attributes.canopy = responseData.attributes.canopy;
47
+ this.attributes.canopySqft = responseData.attributes.canopy_sqft;
48
+ this.attributes.carport = responseData.attributes.carport;
49
+ this.attributes.carportSqft = responseData.attributes.carport_sqft;
50
+ this.attributes.cbsaCode = responseData.attributes.cbsa_code;
51
+ this.attributes.cbsaName = responseData.attributes.cbsa_name;
52
+ this.attributes.cellar = responseData.attributes.cellar;
53
+ this.attributes.censusBlock = responseData.attributes.census_block;
54
+ this.attributes.censusTract = responseData.attributes.census_tract;
55
+ this.attributes.censusBlockGroup = responseData.attributes.census_block_group;
56
+ this.attributes.censusFipsPlaceCode = responseData.attributes.census_fips_place_code;
57
+ this.attributes.censusTract = responseData.attributes.census_tract;
58
+ this.attributes.centralVacuum = responseData.attributes.central_vacuum;
59
+ this.attributes.codeTitleCompany = responseData.attributes.code_title_company;
60
+ this.attributes.combinedStatisticalArea = responseData.attributes.combined_statistical_area;
61
+ this.attributes.communityRec = responseData.attributes.community_rec;
62
+ this.attributes.companyFlag = responseData.attributes.company_flag;
63
+ this.attributes.congressionalDistrict = responseData.attributes.congressional_district;
64
+ this.attributes.constructionType = responseData.attributes.construction_type;
65
+ this.attributes.contactCity = responseData.attributes.contact_city;
66
+ this.attributes.contactCrrt = responseData.attributes.contact_crrt;
67
+ this.attributes.contactFullAddress = responseData.attributes.contact_full_address;
68
+ this.attributes.contactHouseNumber = responseData.attributes.contact_house_number;
69
+ this.attributes.contactMailInfoFormat = responseData.attributes.contact_main_info_format;
70
+ this.attributes.contactMailInfoPrivacy = responseData.attributes.contact_mail_info_privacy;
71
+ this.attributes.contactMailingCounty = responseData.attributes.contact_mailing_county;
72
+ this.attributes.contactMailingFips = responseData.attributes.contact_mailing_fips;
73
+ this.attributes.contactPostDirection = responseData.attributes.contact_post_direction;
74
+ this.attributes.contactPreDirection = responseData.attributes.contact_pre_direction;
75
+ this.attributes.contactState = responseData.attributes.contact_state;
76
+ this.attributes.contactStreetName = responseData.attributes.contact_street_name;
77
+ this.attributes.contactSuffix = responseData.attributes.contact_suffix;
78
+ this.attributes.contactUnitDesignator = responseData.attributes.contact_unit_designator;
79
+ this.attributes.contactValue = responseData.attributes.contact_value;
80
+ this.attributes.contactZip = responseData.attributes.contact_zip;
81
+ this.attributes.contactZip4 = responseData.attributes.contact_zip4;
82
+ this.attributes.courtyard = responseData.attributes.courtyard;
83
+ this.attributes.courtyardArea = responseData.attributes.courtyard_area;
84
+ this.attributes.deck = responseData.attributes.deck;
85
+ this.attributes.deckArea = responseData.attributes.deck_area;
86
+ this.attributes.deedDocumentPage = responseData.attributes.deed_document_page;
87
+ this.attributes.deedDocumentBook = responseData.attributes.deed_document_book;
88
+ this.attributes.deedDocumentNumber = responseData.attributes.deed_document_number;
89
+ this.attributes.deedOwnerFirstName = responseData.attributes.deed_owner_first_name;
90
+ this.attributes.deedOwnerFirstName2 = responseData.attributes.deed_owner_first_name2;
91
+ this.attributes.deedOwnerFirstName3 = responseData.attributes.deed_owner_first_name3;
92
+ this.attributes.deedOwnerFirstName4 = responseData.attributes.deed_owner_first_name4;
93
+ this.attributes.deedOwnerFullName = responseData.attributes.deed_owner_full_name;
94
+ this.attributes.deedOwnerFullName2 = responseData.attributes.deed_owner_full_name2;
95
+ this.attributes.deedOwnerFullName3 = responseData.attributes.deed_owner_full_name3;
96
+ this.attributes.deedOwnerFullName4 = responseData.attributes.deed_owner_full_name4;
97
+ this.attributes.deedOwnerLastName = responseData.attributes.deed_owner_last_name;
98
+ this.attributes.deedOwnerLastName2 = responseData.attributes.deed_owner_last_name2;
99
+ this.attributes.deedOwnerLastName3 = responseData.attributes.deed_owner_last_name3;
100
+ this.attributes.deedOwnerLastName4 = responseData.attributes.deed_owner_last_name4;
101
+ this.attributes.deedOwnerMiddleName = responseData.attributes.deed_owner_middle_name;
102
+ this.attributes.deedOwnerMiddleName2 = responseData.attributes.deed_owner_middle_name2;
103
+ this.attributes.deedOwnerMiddleName3 = responseData.attributes.deed_owner_middle_name3;
104
+ this.attributes.deedOwnerMiddleName4 = responseData.attributes.deed_owner_middle_name4;
105
+ this.attributes.deedOwnerSuffix = responseData.attributes.deed_owner_suffix;
106
+ this.attributes.deedOwnerSuffix2 = responseData.attributes.deed_owner_suffix2;
107
+ this.attributes.deedOwnerSuffix3 = responseData.attributes.deed_owner_suffix3;
108
+ this.attributes.deedOwnerSuffix4 = responseData.attributes.deed_owner_suffix4;
109
+ this.attributes.deedSaleDate = responseData.attributes.deed_sale_date;
110
+ this.attributes.deedSalePrice = responseData.attributes.deed_sale_price;
111
+ this.attributes.deedTransactionId = responseData.attributes.deed_transaction_id;
112
+ this.attributes.depthLinearFootage = responseData.attributes.depth_linear_footage;
113
+ this.attributes.disabledTaxExemption = responseData.attributes.disabled_tax_exemption;
114
+ this.attributes.drivewaySqft = responseData.attributes.driveway_sqft;
115
+ this.attributes.drivewayType = responseData.attributes.driveway_type;
116
+ this.attributes.effectiveYearBuilt = responseData.attributes.effective_year_built;
117
+ this.attributes.elevationFeet = responseData.attributes.elevation_feet;
118
+ this.attributes.elevator = responseData.attributes.elevator;
119
+ this.attributes.equestrianArena = responseData.attributes.equestrian_arena;
120
+ this.attributes.escalator = responseData.attributes.escalator;
121
+ this.attributes.exerciseRoom = responseData.attributes.exercise_room;
122
+ this.attributes.exteriorWalls = responseData.attributes.exterior_walls;
123
+ this.attributes.familyRoom = responseData.attributes.family_room;
124
+ this.attributes.fence = responseData.attributes.fence;
125
+ this.attributes.fenceArea = responseData.attributes.fence_area;
126
+ this.attributes.fipsCode = responseData.attributes.fips_code;
127
+ this.attributes.fireResistanceCode = responseData.attributes.fire_resistance_code;
128
+ this.attributes.fireSprinklersFlag = responseData.attributes.fire_sprinkler_flag;
129
+ this.attributes.fireplace = responseData.attributes.fireplace;
130
+ this.attributes.fireplaceNumber = responseData.attributes.fireplace_number;
131
+ this.attributes.firstName = responseData.attributes.first_name;
132
+ this.attributes.firstName2 = responseData.attributes.first_name2;
133
+ this.attributes.firstName3 = responseData.attributes.first_name3;
134
+ this.attributes.firstName4 = responseData.attributes.first_name4;
135
+ this.attributes.flooring = responseData.attributes.flooring;
136
+ this.attributes.foundation = responseData.attributes.foundation;
137
+ this.attributes.gameRoom = responseData.attributes.game_room;
138
+ this.attributes.garage = responseData.attributes.garage;
139
+ this.attributes.garageSqft = responseData.attributes.garage_sqft;
140
+ this.attributes.gazebo = responseData.attributes.gazebo;
141
+ this.attributes.gazeboSqft = responseData.attributes.gazebo_sqft;
142
+ this.attributes.golfCourse = responseData.attributes.golf_course;
143
+ this.attributes.grainery = responseData.attributes.grainery;
144
+ this.attributes.grainerySqft = responseData.attributes.grainery_sqft;
145
+ this.attributes.greatRoom = responseData.attributes.great_room;
146
+ this.attributes.greenhouse = responseData.attributes.greenhouse;
147
+ this.attributes.greenhouseSqft = responseData.attributes.greenhouse_sqft;
148
+ this.attributes.grossSqft = responseData.attributes.gross_sqft;
149
+ this.attributes.guesthouse = responseData.attributes.guesthouse;
150
+ this.attributes.guesthouseSqft = responseData.attributes.guesthouse_sqft;
151
+ this.attributes.handicapAccessibility = responseData.attributes.handicap_accessibility;
152
+ this.attributes.heat = responseData.attributes.heat;
153
+ this.attributes.heatFuelType = responseData.attributes.heat_fuel_type;
154
+ this.attributes.hobbyRoom = responseData.attributes.hobby_room;
155
+ this.attributes.homeownerTaxExemption = responseData.attributes.homeowner_tax_exemption;
156
+ this.attributes.instrumentDate = responseData.attributes.instrument_date;
157
+ this.attributes.intercomSystem = responseData.attributes.intercom_system;
158
+ this.attributes.interestRateType2 = responseData.attributes.interest_rate_type_2;
159
+ this.attributes.interiorStructure = responseData.attributes.interior_structure;
160
+ this.attributes.kennel = responseData.attributes.kennel;
161
+ this.attributes.kennelSqft = responseData.attributes.kennel_sqft;
162
+ this.attributes.landUseCode = responseData.attributes.land_use_code;
163
+ this.attributes.landUseGroup = responseData.attributes.land_use_group;
164
+ this.attributes.landUseStandard = responseData.attributes.land_use_standard;
165
+ this.attributes.lastName = responseData.attributes.last_name;
166
+ this.attributes.lastName2 = responseData.attributes.last_name_2;
167
+ this.attributes.lastName3 = responseData.attributes.last_name_3;
168
+ this.attributes.lastName4 = responseData.attributes.last_name_4;
169
+ this.attributes.latitude = responseData.attributes.latitude;
170
+ this.attributes.laundry = responseData.attributes.laundry;
171
+ this.attributes.leanTo = responseData.attributes.lean_to;
172
+ this.attributes.leanToSqft = responseData.attributes.lean_to_sqft;
173
+ this.attributes.legalDescription = responseData.attributes.legal_description;
174
+ this.attributes.legalUnit = responseData.attributes.legal_unit;
175
+ this.attributes.lenderAddress = responseData.attributes.lender_address;
176
+ this.attributes.lenderAddress2 = responseData.attributes.lender_address_2;
177
+ this.attributes.lenderCity = responseData.attributes.lender_city;
178
+ this.attributes.lenderCity2 = responseData.attributes.lender_city_2;
179
+ this.attributes.lenderCode = responseData.attributes.lender_code;
180
+ this.attributes.lenderCode2 = responseData.attributes.lender_code_2;
181
+ this.attributes.lenderFirstName = responseData.attributes.lender_first_name;
182
+ this.attributes.lenderFirstName2 = responseData.attributes.lender_first_name_2;
183
+ this.attributes.lenderLastName = responseData.attributes.lender_last_name;
184
+ this.attributes.lenderLastName2 = responseData.attributes.lender_last_name_2;
185
+ this.attributes.lenderName = responseData.attributes.lender_name;
186
+ this.attributes.lenderName2 = responseData.attributes.lender_name_2;
187
+ this.attributes.lenderSellerCarryBack = responseData.attributes.lender_seller_carry_back;
188
+ this.attributes.lenderSellerCarryBack2 = responseData.attributes.lender_seller_carry_back_2;
189
+ this.attributes.lenderState = responseData.attributes.lender_state;
190
+ this.attributes.lenderState2 = responseData.attributes.lender_state_2;
191
+ this.attributes.lenderZip = responseData.attributes.lender_zip;
192
+ this.attributes.lenderZip2 = responseData.attributes.lender_zip_2;
193
+ this.attributes.lenderZipExtended = responseData.attributes.lender_zip_extended;
194
+ this.attributes.lenderZipExtended2 = responseData.attributes.lender_zip_extended_2;
195
+ this.attributes.loadingPlatform = responseData.attributes.loading_platform;
196
+ this.attributes.loadingPlatformSqft = responseData.attributes.loading_platform_sqft;
197
+ this.attributes.longitude = responseData.attributes.longitude;
198
+ this.attributes.lot1 = responseData.attributes.lot_1;
199
+ this.attributes.lot2 = responseData.attributes.lot_2;
200
+ this.attributes.lot3 = responseData.attributes.lot_3;
201
+ this.attributes.lotSqft = responseData.attributes.lot_sqft;
202
+ this.attributes.marketImprovementPercent = responseData.attributes.market_improvement_percent;
203
+ this.attributes.marketImprovementValue = responseData.attributes.market_improvement_value;
204
+ this.attributes.marketLandValue = responseData.attributes.market_land_value;
205
+ this.attributes.marketValueYear = responseData.attributes.market_value_year;
206
+ this.attributes.matchType = responseData.attributes.match_type;
207
+ this.attributes.mediaRoom = responseData.attributes.media_room;
208
+ this.attributes.metroDivision = responseData.attributes.metro_division;
209
+ this.attributes.middleName = responseData.attributes.middle_name;
210
+ this.attributes.middleName2 = responseData.attributes.middle_name_2;
211
+ this.attributes.middleName3 = responseData.attributes.middle_name_3;
212
+ this.attributes.middleName4 = responseData.attributes.middle_name_4;
213
+ this.attributes.milkhouse = responseData.attributes.milkhouse;
214
+ this.attributes.milkhouseSqft = responseData.attributes.milkhouse_sqft;
215
+ this.attributes.minorCivilDivisionCode = responseData.attributes.minor_civil_division_code;
216
+ this.attributes.minorCivilDivisionName = responseData.attributes.minor_civil_division_name;
217
+ this.attributes.mobileHomeHookup = responseData.attributes.mobile_home_hookup;
218
+ this.attributes.mortgageAmount = responseData.attributes.mortgage_amount;
219
+ this.attributes.mortgageAmount2 = responseData.attributes.mortgage_amount_2;
220
+ this.attributes.mortgageDueDate = responseData.attributes.mortgage_due_date;
221
+ this.attributes.mortgageDueDate2 = responseData.attributes.mortgage_due_date_2;
222
+ this.attributes.mortgageInterestRate = responseData.attributes.mortgage_interest_rate;
223
+ this.attributes.mortgageInterestRateType = responseData.attributes.mortgage_interest_rate_type;
224
+ this.attributes.mortgageLenderCode = responseData.attributes.mortgage_lender_code;
225
+ this.attributes.mortgageRate2 = responseData.attributes.mortgage_rate_2;
226
+ this.attributes.mortgageRecordingDate = responseData.attributes.mortgage_recording_date;
227
+ this.attributes.mortgageRecordingDate2 = responseData.attributes.mortgage_recording_date_2;
228
+ this.attributes.mortgageTerm = responseData.attributes.mortgage_term;
229
+ this.attributes.mortgageTerm2 = responseData.attributes.mortgage_term_2;
230
+ this.attributes.mortgageTermType = responseData.attributes.mortgage_term_type;
231
+ this.attributes.mortgageTermType2 = responseData.attributes.mortgage_term_type_2;
232
+ this.attributes.mortgageType = responseData.attributes.mortgage_type;
233
+ this.attributes.mortgageType2 = responseData.attributes.mortgage_type_2;
234
+ this.attributes.msaCode = responseData.attributes.msa_code;
235
+ this.attributes.msaName = responseData.attributes.msa_name;
236
+ this.attributes.mudRoom = responseData.attributes.mud_room;
237
+ this.attributes.multiParcelFlag = responseData.attributes.multi_parcel_flag;
238
+ this.attributes.nameTitleCompany = responseData.attributes.name_title_company;
239
+ this.attributes.neighborhoodCode = responseData.attributes.neighborhood_code;
240
+ this.attributes.numberOfBuildings = responseData.attributes.number_of_buildings;
241
+ this.attributes.office = responseData.attributes.office;
242
+ this.attributes.officeSqft = responseData.attributes.office_sqft;
243
+ this.attributes.otherTaxExemption = responseData.attributes.other_tax_exemption;
244
+ this.attributes.outdoorKitchenFireplace = responseData.attributes.outdoor_kitchen_fireplace;
245
+ this.attributes.overheadDoor = responseData.attributes.overhead_door;
246
+ this.attributes.ownerFullName = responseData.attributes.owner_full_name;
247
+ this.attributes.ownerFullName2 = responseData.attributes.owner_full_name_2;
248
+ this.attributes.ownerFullName3 = responseData.attributes.owner_full_name_3;
249
+ this.attributes.ownerFullName4 = responseData.attributes.owner_full_name_4;
250
+ this.attributes.ownerOccupancyStatus = responseData.attributes.owner_occupancy_status;
251
+ this.attributes.ownershipTransferDate = responseData.attributes.ownership_transfer_date;
252
+ this.attributes.ownershipTransferDocNumber = responseData.attributes.ownership_transfer_doc_number;
253
+ this.attributes.ownershipTransferTransactionId = responseData.attributes.ownership_transfer_transaction_id;
254
+ this.attributes.ownershipType = responseData.attributes.ownership_type;
255
+ this.attributes.ownershipType2 = responseData.attributes.ownership_type_2;
256
+ this.attributes.ownershipVestingRelationCode = responseData.attributes.ownership_vesting_relation_code;
257
+ this.attributes.parcelAccountNumber = responseData.attributes.parcel_account_number;
258
+ this.attributes.parcelMapBook = responseData.attributes.parcel_map_book;
259
+ this.attributes.parcelMapPage = responseData.attributes.parcel_map_page;
260
+ this.attributes.parcelNumberAlternate = responseData.attributes.parcel_number_alternate;
261
+ this.attributes.parcelNumberFormatted = responseData.attributes.parcel_number_formatted;
262
+ this.attributes.parcelNumberPrevious = responseData.attributes.parcel_number_previous;
263
+ this.attributes.parcelNumberYearAdded = responseData.attributes.parcel_number_year_added;
264
+ this.attributes.parcelNumberYearChange = responseData.attributes.parcel_number_year_change;
265
+ this.attributes.parcelRawNumber = responseData.attributes.parcel_raw_number;
266
+ this.attributes.parcelShellRecord = responseData.attributes.parcel_shell_record;
267
+ this.attributes.parkingSpaces = responseData.attributes.parking_spaces;
268
+ this.attributes.patioArea = responseData.attributes.patio_area;
269
+ this.attributes.phaseName = responseData.attributes.phase_name;
270
+ this.attributes.plumbingFixturesCount = responseData.attributes.plumbing_fixtures_count;
271
+ this.attributes.poleStruct = responseData.attributes.pole_struct;
272
+ this.attributes.poleStructSqft = responseData.attributes.pole_struct_sqft;
273
+ this.attributes.pond = responseData.attributes.pond;
274
+ this.attributes.pool = responseData.attributes.pool;
275
+ this.attributes.poolArea = responseData.attributes.pool_area;
276
+ this.attributes.poolhouse = responseData.attributes.poolhouse;
277
+ this.attributes.poolhouseSqft = responseData.attributes.poolhouse_sqft;
278
+ this.attributes.porch = responseData.attributes.porch;
279
+ this.attributes.porchArea = responseData.attributes.porch_area;
280
+ this.attributes.poultryHouse = responseData.attributes.poultry_house;
281
+ this.attributes.poultryHouseSqft = responseData.attributes.poultry_house_sqft;
282
+ this.attributes.previousAssessedValue = responseData.attributes.previous_assessed_value;
283
+ this.attributes.priorSaleAmount = responseData.attributes.prior_sale_amount;
284
+ this.attributes.priorSaleDate = responseData.attributes.prior_sale_date;
285
+ this.attributes.propertyAddressCarrierRouteCode = responseData.attributes.property_address_carrier_route_code;
286
+ this.attributes.propertyAddressCity = responseData.attributes.property_address_city;
287
+ this.attributes.propertyAddressFull = responseData.attributes.property_address_full;
288
+ this.attributes.propertyAddressHouseNumber = responseData.attributes.property_address_house_number;
289
+ this.attributes.propertyAddressPostDirection = responseData.attributes.property_address_post_direction;
290
+ this.attributes.propertyAddressPreDirection = responseData.attributes.property_address_pre_direction;
291
+ this.attributes.propertyAddressState = responseData.attributes.property_address_state;
292
+ this.attributes.propertyAddressStreetName = responseData.attributes.property_address_street_name;
293
+ this.attributes.propertyAddressStreetSuffix = responseData.attributes.property_address_street_suffix;
294
+ this.attributes.propertyAddressUnitDesignator = responseData.attributes.property_address_unit_designator;
295
+ this.attributes.propertyAddressUnitValue = responseData.attributes.property_address_unit_value;
296
+ this.attributes.propertyAddressZip4 = responseData.attributes.property_address_zip_4;
297
+ this.attributes.propertyAddressZipcode = responseData.attributes.property_address_zipcode;
298
+ this.attributes.publicationDate = responseData.attributes.publication_date;
299
+ this.attributes.quarter = responseData.attributes.quarter;
300
+ this.attributes.quarterQuarter = responseData.attributes.quarter_quarter;
301
+ this.attributes.quonset = responseData.attributes.quonset;
302
+ this.attributes.quonsetSqft = responseData.attributes.quonset_sqft;
303
+ this.attributes.range = responseData.attributes.range;
304
+ this.attributes.recordingDate = responseData.attributes.recording_date;
305
+ this.attributes.roofCover = responseData.attributes.roof_cover;
306
+ this.attributes.roofFrame = responseData.attributes.roof_frame;
307
+ this.attributes.rooms = responseData.attributes.rooms;
308
+ this.attributes.rvParking = responseData.attributes.rv_parking;
309
+ this.attributes.safeRoom = responseData.attributes.safe_room;
310
+ this.attributes.saleAmount = responseData.attributes.sale_amount;
311
+ this.attributes.saleDate = responseData.attributes.sale_date;
312
+ this.attributes.sauna = responseData.attributes.sauna;
313
+ this.attributes.section = responseData.attributes.section;
314
+ this.attributes.securityAlarm = responseData.attributes.security_alarm;
315
+ this.attributes.seniorTaxExemption = responseData.attributes.senior_tax_exemption;
316
+ this.attributes.sewerType = responseData.attributes.sewer_type;
317
+ this.attributes.shed = responseData.attributes.shed;
318
+ this.attributes.shedSqft = responseData.attributes.shed_sqft;
319
+ this.attributes.silo = responseData.attributes.silo;
320
+ this.attributes.siloSqft = responseData.attributes.silo_sqft;
321
+ this.attributes.sittingRoom = responseData.attributes.sitting_room;
322
+ this.attributes.situsCounty = responseData.attributes.situs_county;
323
+ this.attributes.situsState = responseData.attributes.situs_state;
324
+ this.attributes.soundSystem = responseData.attributes.sound_system;
325
+ this.attributes.sportsCourt = responseData.attributes.sports_court;
326
+ this.attributes.sprinklers = responseData.attributes.sprinklers;
327
+ this.attributes.stable = responseData.attributes.stable;
328
+ this.attributes.stableSqft = responseData.attributes.stable_sqft;
329
+ this.attributes.storageBuilding = responseData.attributes.storage_building;
330
+ this.attributes.storageBuildingSqft = responseData.attributes.storage_buildling_sqft;
331
+ this.attributes.storiesNumber = responseData.attributes.stories_number;
332
+ this.attributes.stormShelter = responseData.attributes.storm_shelter;
333
+ this.attributes.stormShutter = responseData.attributes.storm_shutter;
334
+ this.attributes.structureStyle = responseData.attributes.structure_style;
335
+ this.attributes.study = responseData.attributes.study;
336
+ this.attributes.subdivision = responseData.attributes.subdivision;
337
+ this.attributes.suffix = responseData.attributes.suffix;
338
+ this.attributes.suffix2 = responseData.attributes.suffix_2;
339
+ this.attributes.suffix3 = responseData.attributes.suffix_3;
340
+ this.attributes.suffix4 = responseData.attributes.suffix_4;
341
+ this.attributes.sunroom = responseData.attributes.sunroom;
342
+ this.attributes.taxAssessYear = responseData.attributes.tax_assess_year;
343
+ this.attributes.taxBilledAmount = responseData.attributes.tax_billed_amount;
344
+ this.attributes.taxDelinquentYear = responseData.attributes.tax_delinquent_year;
345
+ this.attributes.taxFiscalYear = responseData.attributes.tax_fiscal_year;
346
+ this.attributes.taxJurisdiction = responseData.attributes.tax_jurisdiction;
347
+ this.attributes.taxRateArea = responseData.attributes.tax_rate_area;
348
+ this.attributes.tennisCourt = responseData.attributes.tennis_court;
349
+ this.attributes.topographyCode = responseData.attributes.topography_code;
350
+ this.attributes.totalMarketValue = responseData.attributes.total_market_value;
351
+ this.attributes.township = responseData.attributes.township;
352
+ this.attributes.tractNumber = responseData.attributes.tract_number;
353
+ this.attributes.transferAmount = responseData.attributes.transfer_amount;
354
+ this.attributes.trustDescription = responseData.attributes.trust_description;
355
+ this.attributes.unitCount = responseData.attributes.unit_count;
356
+ this.attributes.upperFloorsSqft = responseData.attributes.upper_floors_sqft;
357
+ this.attributes.utility = responseData.attributes.utility;
358
+ this.attributes.utilityBuilding = responseData.attributes.utility_building;
359
+ this.attributes.utilityBuildingSqft = responseData.attributes.utility_building_sqft;
360
+ this.attributes.utilitySqft = responseData.attributes.utility_sqft;
361
+ this.attributes.veteranTaxExemption = responseData.attributes.veteran_tax_exemption;
362
+ this.attributes.viewDescription = responseData.attributes.view_description;
363
+ this.attributes.waterFeature = responseData.attributes.water_feature;
364
+ this.attributes.waterServiceType = responseData.attributes.water_service_type;
365
+ this.attributes.wetBar = responseData.attributes.wet_bar;
366
+ this.attributes.widowTaxExemption = responseData.attributes.widow_tax_exemption;
367
+ this.attributes.widthLinearFootage = responseData.attributes.width_linear_footage;
368
+ this.attributes.wineCellar = responseData.attributes.wine_cellar;
369
+ this.attributes.yearBuilt = responseData.attributes.year_built;
370
+ this.attributes.zoning = responseData.attributes.zoning;
371
+ }
372
+ }
373
+ }
374
+
375
+ class FinancialResponse {
376
+ constructor(responseData) {
377
+ this.smartyKey = responseData.smarty_key;
378
+ this.dataSetName = responseData.data_set_name;
379
+ this.dataSubsetName = responseData.data_subset_name;
380
+
381
+ this.attributes = {};
382
+ if (responseData.attributes) {
383
+ this.attributes.assessedImprovementPercent = responseData.attributes.assessed_improvement_percent;
384
+ this.attributes.assessedImprovementValue = responseData.attributes.assessed_improvement_value;
385
+ this.attributes.assessedLandValue = responseData.attributes.assessed_land_value;
386
+ this.attributes.assessedValue = responseData.attributes.assessed_value;
387
+ this.attributes.assessorLastUpdate = responseData.attributes.assessor_last_update;
388
+ this.attributes.assessorTaxrollUpdate = responseData.attributes.assessor_taxroll_update;
389
+ this.attributes.contactCity = responseData.attributes.contact_city;
390
+ this.attributes.contactCrrt = responseData.attributes.contact_crrt;
391
+ this.attributes.contactFullAddress = responseData.attributes.contact_full_address;
392
+ this.attributes.contactHouseNumber = responseData.attributes.contact_house_number;
393
+ this.attributes.contactMailInfoFormat = responseData.attributes.contact_main_info_format;
394
+ this.attributes.contactMailInfoPrivacy = responseData.attributes.contact_mail_info_privacy;
395
+ this.attributes.contactMailingCounty = responseData.attributes.contact_mailing_county;
396
+ this.attributes.contactMailingFips = responseData.attributes.contact_mailing_fips;
397
+ this.attributes.contactPostDirection = responseData.attributes.contact_post_direction;
398
+ this.attributes.contactPreDirection = responseData.attributes.contact_pre_direction;
399
+ this.attributes.contactState = responseData.attributes.contact_state;
400
+ this.attributes.contactStreetName = responseData.attributes.contact_street_name;
401
+ this.attributes.contactSuffix = responseData.attributes.contact_suffix;
402
+ this.attributes.contactUnitDesignator = responseData.attributes.contact_unit_designator;
403
+ this.attributes.contactValue = responseData.attributes.contact_value;
404
+ this.attributes.contactZip = responseData.attributes.contact_zip;
405
+ this.attributes.contactZip4 = responseData.attributes.contact_zip4;
406
+ this.attributes.deedDocumentPage = responseData.attributes.deed_document_page;
407
+ this.attributes.deedDocumentBook = responseData.attributes.deed_document_book;
408
+ this.attributes.deedDocumentNumber = responseData.attributes.deed_document_number;
409
+ this.attributes.deedOwnerFirstName = responseData.attributes.deed_owner_first_name;
410
+ this.attributes.deedOwnerFirstName2 = responseData.attributes.deed_owner_first_name2;
411
+ this.attributes.deedOwnerFirstName3 = responseData.attributes.deed_owner_first_name3;
412
+ this.attributes.deedOwnerFirstName4 = responseData.attributes.deed_owner_first_name4;
413
+ this.attributes.deedOwnerFullName = responseData.attributes.deed_owner_full_name;
414
+ this.attributes.deedOwnerFullName2 = responseData.attributes.deed_owner_full_name2;
415
+ this.attributes.deedOwnerFullName3 = responseData.attributes.deed_owner_full_name3;
416
+ this.attributes.deedOwnerFullName4 = responseData.attributes.deed_owner_full_name4;
417
+ this.attributes.deedOwnerLastName = responseData.attributes.deed_owner_last_name;
418
+ this.attributes.deedOwnerLastName2 = responseData.attributes.deed_owner_last_name2;
419
+ this.attributes.deedOwnerLastName3 = responseData.attributes.deed_owner_last_name3;
420
+ this.attributes.deedOwnerLastName4 = responseData.attributes.deed_owner_last_name4;
421
+ this.attributes.deedOwnerMiddleName = responseData.attributes.deed_owner_middle_name;
422
+ this.attributes.deedOwnerMiddleName2 = responseData.attributes.deed_owner_middle_name2;
423
+ this.attributes.deedOwnerMiddleName3 = responseData.attributes.deed_owner_middle_name3;
424
+ this.attributes.deedOwnerMiddleName4 = responseData.attributes.deed_owner_middle_name4;
425
+ this.attributes.deedOwnerSuffix = responseData.attributes.deed_owner_suffix;
426
+ this.attributes.deedOwnerSuffix2 = responseData.attributes.deed_owner_suffix2;
427
+ this.attributes.deedOwnerSuffix3 = responseData.attributes.deed_owner_suffix3;
428
+ this.attributes.deedOwnerSuffix4 = responseData.attributes.deed_owner_suffix4;
429
+ this.attributes.deedSaleDate = responseData.attributes.deed_sale_date;
430
+ this.attributes.deedSalePrice = responseData.attributes.deed_sale_price;
431
+ this.attributes.deedTransactionId = responseData.attributes.deed_transaction_id;
432
+ this.attributes.disabledTaxExemption = responseData.attributes.disabled_tax_exemption;
433
+
434
+ this.attributes.financialHistory = !responseData.attributes.financial_history ? [] : responseData.attributes.financial_history.map(history => {
435
+ return {
436
+ codeTitleCompany: history.code_title_company,
437
+ instrumentDate: history.instrument_date,
438
+ interestRateType2: history.interest_rate_type_2,
439
+ lenderAddress: history.lender_address,
440
+ lenderAddress2: history.lender_address_2,
441
+ lenderCity: history.lender_city,
442
+ lenderCity2: history.lender_city_2,
443
+ lenderCode: history.lender_code,
444
+ lenderCode2: history.lender_code_2,
445
+ lenderFirstName: history.lender_first_name,
446
+ lenderFirstName2: history.lender_first_name_2,
447
+ lenderLastName: history.lender_last_name,
448
+ lenderLastName2: history.lender_last_name_2,
449
+ lenderName: history.lender_name,
450
+ lenderName2: history.lender_name_2,
451
+ lenderSellerCarryBack: history.lender_seller_carry_back,
452
+ lenderSellerCarryBack2: history.lender_seller_carry_back_2,
453
+ lenderState: history.lender_state,
454
+ lenderState2: history.lender_state_2,
455
+ lenderZip: history.lender_zip,
456
+ lenderZip2: history.lender_zip_2,
457
+ lenderZipExtended: history.lender_zip_extended,
458
+ lenderZipExtended2: history.lender_zip_extended_2,
459
+ mortgageAmount: history.mortgage_amount,
460
+ mortgageAmount2: history.mortgage_amount_2,
461
+ mortgageDueDate: history.mortgage_due_date,
462
+ mortgageDueDate2: history.mortgage_due_date_2,
463
+ mortgageInterestRate: history.mortgage_interest_rate,
464
+ mortgageInterestRateType: history.mortgage_interest_rate_type,
465
+ mortgageLenderCode: history.mortgage_lender_code,
466
+ mortgageRate: history.mortgage_rate,
467
+ mortgageRate2: history.mortgage_rate_2,
468
+ mortgageRecordingDate: history.mortgage_recording_date,
469
+ mortgageRecordingDate2: history.mortgage_recording_date_2,
470
+ mortgageTerm: history.mortgage_term,
471
+ mortgageTerm2: history.mortgage_term_2,
472
+ mortgageTermType: history.mortgage_term_type,
473
+ mortgageTermType2: history.mortgage_term_type_2,
474
+ mortgageType: history.mortgage_type,
475
+ mortgageType2: history.mortgage_type_2,
476
+ multiParcelFlag: history.multi_parcel_flag,
477
+ nameTitleCompany: history.name_title_company,
478
+ recordingDate: history.recording_date,
479
+ transferAmount: history.transfer_amount,
480
+ }
481
+ })
482
+ this.attributes.homeownerTaxExemption = responseData.attributes.homeowner_tax_exemption;
483
+ this.attributes.marketImprovementPercent = responseData.attributes.market_improvement_percent;
484
+ this.attributes.marketImprovementValue = responseData.attributes.market_improvement_value;
485
+ this.attributes.marketLandValue = responseData.attributes.market_land_value;
486
+ this.attributes.marketValueYear = responseData.attributes.market_value_year;
487
+ this.attributes.matchType = responseData.attributes.match_type;
488
+ this.attributes.otherTaxExemption = responseData.attributes.other_tax_exemption;
489
+ this.attributes.ownershipTransferDate = responseData.attributes.ownership_transfer_date;
490
+ this.attributes.ownershipTransferDocNumber = responseData.attributes.ownership_transfer_doc_number;
491
+ this.attributes.ownershipTransferTransactionId = responseData.attributes.ownership_transfer_transaction_id;
492
+ this.attributes.ownershipType = responseData.attributes.ownership_type;
493
+ this.attributes.ownershipType2 = responseData.attributes.ownership_type_2;
494
+ this.attributes.previousAssessedValue = responseData.attributes.previous_assessed_value;
495
+ this.attributes.priorSaleAmount = responseData.attributes.prior_sale_amount;
496
+ this.attributes.priorSaleDate = responseData.attributes.prior_sale_date;
497
+ this.attributes.saleAmount = responseData.attributes.sale_amount;
498
+ this.attributes.saleDate = responseData.attributes.sale_date;
499
+ this.attributes.seniorTaxExemption = responseData.attributes.senior_tax_exemption;
500
+ this.attributes.taxAssessYear = responseData.attributes.tax_assess_year;
501
+ this.attributes.taxBilledAmount = responseData.attributes.tax_billed_amount;
502
+ this.attributes.taxDelinquentYear = responseData.attributes.tax_delinquent_year;
503
+ this.attributes.taxFiscalYear = responseData.attributes.tax_fiscal_year;
504
+ this.attributes.taxRateArea = responseData.attributes.tax_rate_area;
505
+ this.attributes.totalMarketValue = responseData.attributes.total_market_value;
506
+ this.attributes.trustDescription = responseData.attributes.trust_description;
507
+ this.attributes.veteranTaxExemption = responseData.attributes.veteran_tax_exemption;
508
+ this.attributes.widow_tax_exemption = responseData.attributes.widow_tax_exemption;
509
+ }
510
+ }
511
+ }
512
+
513
+ class GeoResponse {
514
+ constructor(responseData) {
515
+ this.smartyKey = responseData.smarty_key;
516
+ this.dataSetName = responseData.data_set_name;
517
+
518
+ this.attributes = {};
519
+ if (responseData.attributes) {
520
+ this.attributes.censusBlock = {};
521
+ if (responseData.attributes.census_block) {
522
+ this.attributes.censusBlock.accuracy = responseData.attributes.census_block.accuracy;
523
+ this.attributes.censusBlock.geoid = responseData.attributes.census_block.geoid;
524
+ }
525
+
526
+ this.attributes.censusCountyDivision = {};
527
+ if (responseData.attributes.census_county_division) {
528
+ this.attributes.censusCountyDivision.accuracy = responseData.attributes.census_county_division.accuracy;
529
+ this.attributes.censusCountyDivision.code = responseData.attributes.census_county_division.code;
530
+ this.attributes.censusCountyDivision.name = responseData.attributes.census_county_division.name;
531
+ }
532
+
533
+ this.attributes.censusTract = {};
534
+ if (responseData.attributes.census_tract) {
535
+ this.attributes.censusTract.code = responseData.attributes.census_tract.code;
536
+ }
537
+
538
+ this.attributes.coreBasedStatArea = {};
539
+ if (responseData.attributes.core_based_stat_area) {
540
+ this.attributes.coreBasedStatArea.code = responseData.attributes.core_based_stat_area.code;
541
+ this.attributes.coreBasedStatArea.name = responseData.attributes.core_based_stat_area.name;
542
+ }
543
+
544
+ this.attributes.place = {};
545
+ if (responseData.attributes.place) {
546
+ this.attributes.place.accuracy = responseData.attributes.place.accuracy;
547
+ this.attributes.place.code = responseData.attributes.place.code;
548
+ this.attributes.place.name = responseData.attributes.place.name;
549
+ this.attributes.place.type = responseData.attributes.place.type;
550
+ }
551
+ }
552
+ }
553
+ }
554
+
555
+ module.exports = {
556
+ Response,
557
+ FinancialResponse,
558
+ GeoResponse,
559
+ };
@@ -65,5 +65,11 @@ module.exports = {
65
65
  aggressive: "aggressive",
66
66
  addr_line_breaks: "addressesHaveLineBreaks",
67
67
  addr_per_line: "addressesPerLine",
68
+ },
69
+ usEnrichment: {
70
+ include: "include",
71
+ exclude: "exclude",
72
+ dataset: "dataset",
73
+ data_subset: "dataSubset",
68
74
  }
69
75
  };
@@ -32,6 +32,10 @@ function buildInternationalAddressAutocompleteApiClient(credentials) {
32
32
  return instantiateClientBuilder(credentials).buildInternationalAddressAutocompleteClient();
33
33
  }
34
34
 
35
+ function buildUsEnrichmentApiClient(credentials) {
36
+ return instantiateClientBuilder(credentials).buildUsEnrichmentClient();
37
+ }
38
+
35
39
  module.exports = {
36
40
  usStreet: buildUsStreetApiClient,
37
41
  usAutocompletePro: buildUsAutocompleteProApiClient,
@@ -40,4 +44,5 @@ module.exports = {
40
44
  internationalStreet: buildInternationalStreetApiClient,
41
45
  usReverseGeo: buildUsReverseGeoApiClient,
42
46
  internationalAddressAutocomplete: buildInternationalAddressAutocompleteApiClient,
47
+ usEnrichment: buildUsEnrichmentApiClient,
43
48
  };