smartystreets-javascript-sdk 5.2.0 → 6.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.
Files changed (243) hide show
  1. package/dist/cjs/AgentSender.cjs +1 -0
  2. package/dist/cjs/BaseUrlSender.cjs +1 -0
  3. package/dist/cjs/Batch.cjs +1 -0
  4. package/dist/cjs/ClientBuilder.cjs +1 -0
  5. package/dist/cjs/CustomHeaderSender.cjs +1 -0
  6. package/dist/cjs/Errors.cjs +1 -0
  7. package/dist/cjs/HttpSender.cjs +1 -0
  8. package/dist/cjs/InputData.cjs +1 -0
  9. package/dist/cjs/LicenseSender.cjs +1 -0
  10. package/dist/cjs/Request.cjs +1 -0
  11. package/dist/cjs/Response.cjs +1 -0
  12. package/dist/cjs/RetrySender.cjs +1 -0
  13. package/dist/cjs/SharedCredentials.cjs +1 -0
  14. package/dist/cjs/SigningSender.cjs +1 -0
  15. package/dist/cjs/StaticCredentials.cjs +1 -0
  16. package/dist/cjs/StatusCodeSender.cjs +1 -0
  17. package/dist/cjs/_virtual/Batch.cjs +1 -0
  18. package/dist/cjs/_virtual/Candidate.cjs +1 -0
  19. package/dist/cjs/_virtual/Candidate2.cjs +1 -0
  20. package/dist/cjs/_virtual/ClientBuilder.cjs +1 -0
  21. package/dist/cjs/_virtual/Errors.cjs +1 -0
  22. package/dist/cjs/_virtual/Lookup.cjs +1 -0
  23. package/dist/cjs/_virtual/Lookup2.cjs +1 -0
  24. package/dist/cjs/_virtual/Lookup3.cjs +1 -0
  25. package/dist/cjs/_virtual/Lookup4.cjs +1 -0
  26. package/dist/cjs/_virtual/Lookup5.cjs +1 -0
  27. package/dist/cjs/_virtual/Lookup6.cjs +1 -0
  28. package/dist/cjs/_virtual/Lookup7.cjs +1 -0
  29. package/dist/cjs/_virtual/Lookup8.cjs +1 -0
  30. package/dist/cjs/_virtual/Response.cjs +1 -0
  31. package/dist/cjs/_virtual/Result.cjs +1 -0
  32. package/dist/cjs/_virtual/Result2.cjs +1 -0
  33. package/dist/cjs/_virtual/SharedCredentials.cjs +1 -0
  34. package/dist/cjs/_virtual/StaticCredentials.cjs +1 -0
  35. package/dist/cjs/_virtual/Suggestion.cjs +1 -0
  36. package/dist/cjs/_virtual/Suggestion2.cjs +1 -0
  37. package/dist/cjs/_virtual/_axios.cjs +1 -0
  38. package/dist/cjs/_virtual/_commonjsHelpers.cjs +1 -0
  39. package/dist/cjs/_virtual/buildClients.cjs +1 -0
  40. package/dist/cjs/index.cjs +1 -0
  41. package/dist/cjs/international_address_autocomplete/Client.cjs +1 -0
  42. package/dist/cjs/international_address_autocomplete/Lookup.cjs +1 -0
  43. package/dist/cjs/international_address_autocomplete/Suggestion.cjs +1 -0
  44. package/dist/cjs/international_street/Candidate.cjs +1 -0
  45. package/dist/cjs/international_street/Client.cjs +1 -0
  46. package/dist/cjs/international_street/Lookup.cjs +1 -0
  47. package/dist/cjs/package.json.cjs +1 -0
  48. package/dist/cjs/us_autocomplete_pro/Client.cjs +1 -0
  49. package/dist/cjs/us_autocomplete_pro/Lookup.cjs +1 -0
  50. package/dist/cjs/us_autocomplete_pro/Suggestion.cjs +1 -0
  51. package/dist/cjs/us_enrichment/Client.cjs +1 -0
  52. package/dist/cjs/us_enrichment/Lookup.cjs +1 -0
  53. package/dist/cjs/us_enrichment/Response.cjs +1 -0
  54. package/dist/cjs/us_extract/Address.cjs +1 -0
  55. package/dist/cjs/us_extract/Client.cjs +1 -0
  56. package/dist/cjs/us_extract/Lookup.cjs +1 -0
  57. package/dist/cjs/us_extract/Result.cjs +1 -0
  58. package/dist/cjs/us_reverse_geo/Client.cjs +1 -0
  59. package/dist/cjs/us_reverse_geo/Lookup.cjs +1 -0
  60. package/dist/cjs/us_reverse_geo/Response.cjs +1 -0
  61. package/dist/cjs/us_reverse_geo/Result.cjs +1 -0
  62. package/dist/cjs/us_street/Candidate.cjs +1 -0
  63. package/dist/cjs/us_street/Client.cjs +1 -0
  64. package/dist/cjs/us_street/Lookup.cjs +1 -0
  65. package/dist/cjs/us_zipcode/Client.cjs +1 -0
  66. package/dist/cjs/us_zipcode/Lookup.cjs +1 -0
  67. package/dist/cjs/us_zipcode/Result.cjs +1 -0
  68. package/dist/cjs/util/Sleeper.cjs +1 -0
  69. package/dist/cjs/util/apiToSDKKeyMap.cjs +1 -0
  70. package/dist/cjs/util/buildClients.cjs +1 -0
  71. package/dist/cjs/util/buildInputData.cjs +1 -0
  72. package/dist/cjs/util/buildSmartyResponse.cjs +1 -0
  73. package/dist/cjs/util/sendBatch.cjs +1 -0
  74. package/dist/esm/AgentSender.mjs +1 -0
  75. package/dist/esm/BaseUrlSender.mjs +1 -0
  76. package/dist/esm/Batch.mjs +1 -0
  77. package/dist/esm/ClientBuilder.mjs +1 -0
  78. package/dist/esm/CustomHeaderSender.mjs +1 -0
  79. package/dist/esm/Errors.mjs +1 -0
  80. package/dist/esm/HttpSender.mjs +1 -0
  81. package/dist/esm/InputData.mjs +1 -0
  82. package/dist/esm/LicenseSender.mjs +1 -0
  83. package/dist/esm/Request.mjs +1 -0
  84. package/dist/esm/Response.mjs +1 -0
  85. package/dist/esm/RetrySender.mjs +1 -0
  86. package/dist/esm/SharedCredentials.mjs +1 -0
  87. package/dist/esm/SigningSender.mjs +1 -0
  88. package/dist/esm/StaticCredentials.mjs +1 -0
  89. package/dist/esm/StatusCodeSender.mjs +1 -0
  90. package/dist/esm/_virtual/Batch.mjs +1 -0
  91. package/dist/esm/_virtual/Candidate.mjs +1 -0
  92. package/dist/esm/_virtual/Candidate2.mjs +1 -0
  93. package/dist/esm/_virtual/ClientBuilder.mjs +1 -0
  94. package/dist/esm/_virtual/Errors.mjs +1 -0
  95. package/dist/esm/_virtual/Lookup.mjs +1 -0
  96. package/dist/esm/_virtual/Lookup2.mjs +1 -0
  97. package/dist/esm/_virtual/Lookup3.mjs +1 -0
  98. package/dist/esm/_virtual/Lookup4.mjs +1 -0
  99. package/dist/esm/_virtual/Lookup5.mjs +1 -0
  100. package/dist/esm/_virtual/Lookup6.mjs +1 -0
  101. package/dist/esm/_virtual/Lookup7.mjs +1 -0
  102. package/dist/esm/_virtual/Lookup8.mjs +1 -0
  103. package/dist/esm/_virtual/Response.mjs +1 -0
  104. package/dist/esm/_virtual/Result.mjs +1 -0
  105. package/dist/esm/_virtual/Result2.mjs +1 -0
  106. package/dist/esm/_virtual/SharedCredentials.mjs +1 -0
  107. package/dist/esm/_virtual/StaticCredentials.mjs +1 -0
  108. package/dist/esm/_virtual/Suggestion.mjs +1 -0
  109. package/dist/esm/_virtual/Suggestion2.mjs +1 -0
  110. package/dist/esm/_virtual/_axios.mjs +1 -0
  111. package/dist/esm/_virtual/_commonjsHelpers.mjs +1 -0
  112. package/dist/esm/_virtual/buildClients.mjs +1 -0
  113. package/dist/esm/index.mjs +1 -0
  114. package/dist/esm/international_address_autocomplete/Client.mjs +1 -0
  115. package/dist/esm/international_address_autocomplete/Lookup.mjs +1 -0
  116. package/dist/esm/international_address_autocomplete/Suggestion.mjs +1 -0
  117. package/dist/esm/international_street/Candidate.mjs +1 -0
  118. package/dist/esm/international_street/Client.mjs +1 -0
  119. package/dist/esm/international_street/Lookup.mjs +1 -0
  120. package/dist/esm/package.json.mjs +1 -0
  121. package/dist/esm/us_autocomplete_pro/Client.mjs +1 -0
  122. package/dist/esm/us_autocomplete_pro/Lookup.mjs +1 -0
  123. package/dist/esm/us_autocomplete_pro/Suggestion.mjs +1 -0
  124. package/dist/esm/us_enrichment/Client.mjs +1 -0
  125. package/dist/esm/us_enrichment/Lookup.mjs +1 -0
  126. package/dist/esm/us_enrichment/Response.mjs +1 -0
  127. package/dist/esm/us_extract/Address.mjs +1 -0
  128. package/dist/esm/us_extract/Client.mjs +1 -0
  129. package/dist/esm/us_extract/Lookup.mjs +1 -0
  130. package/dist/esm/us_extract/Result.mjs +1 -0
  131. package/dist/esm/us_reverse_geo/Client.mjs +1 -0
  132. package/dist/esm/us_reverse_geo/Lookup.mjs +1 -0
  133. package/dist/esm/us_reverse_geo/Response.mjs +1 -0
  134. package/dist/esm/us_reverse_geo/Result.mjs +1 -0
  135. package/dist/esm/us_street/Candidate.mjs +1 -0
  136. package/dist/esm/us_street/Client.mjs +1 -0
  137. package/dist/esm/us_street/Lookup.mjs +1 -0
  138. package/dist/esm/us_zipcode/Client.mjs +1 -0
  139. package/dist/esm/us_zipcode/Lookup.mjs +1 -0
  140. package/dist/esm/us_zipcode/Result.mjs +1 -0
  141. package/dist/esm/util/Sleeper.mjs +1 -0
  142. package/dist/esm/util/apiToSDKKeyMap.mjs +1 -0
  143. package/dist/esm/util/buildClients.mjs +1 -0
  144. package/dist/esm/util/buildInputData.mjs +1 -0
  145. package/dist/esm/util/buildSmartyResponse.mjs +1 -0
  146. package/dist/esm/util/sendBatch.mjs +1 -0
  147. package/package.json +26 -6
  148. package/.github/workflows/node-tests.yml +0 -27
  149. package/CHANGELOG.md +0 -5
  150. package/Makefile +0 -28
  151. package/examples/international_address_autocomplete.js +0 -58
  152. package/examples/international_street.js +0 -56
  153. package/examples/us_autocomplete_pro.js +0 -63
  154. package/examples/us_enrichment.js +0 -36
  155. package/examples/us_extract.js +0 -40
  156. package/examples/us_reverse_geo.js +0 -40
  157. package/examples/us_street.js +0 -73
  158. package/examples/us_zipcode.js +0 -57
  159. package/index.js +0 -41
  160. package/js-sdk-demo.cast +0 -95
  161. package/src/AgentSender.js +0 -16
  162. package/src/BaseUrlSender.js +0 -18
  163. package/src/Batch.js +0 -49
  164. package/src/ClientBuilder.js +0 -212
  165. package/src/CustomHeaderSender.js +0 -20
  166. package/src/Errors.js +0 -100
  167. package/src/HttpSender.js +0 -66
  168. package/src/InputData.js +0 -21
  169. package/src/LicenseSender.js +0 -20
  170. package/src/Request.js +0 -12
  171. package/src/Response.js +0 -10
  172. package/src/RetrySender.js +0 -50
  173. package/src/SharedCredentials.js +0 -13
  174. package/src/SigningSender.js +0 -26
  175. package/src/StaticCredentials.js +0 -13
  176. package/src/StatusCodeSender.js +0 -35
  177. package/src/international_address_autocomplete/Client.js +0 -41
  178. package/src/international_address_autocomplete/Lookup.js +0 -14
  179. package/src/international_address_autocomplete/Suggestion.js +0 -14
  180. package/src/international_street/Candidate.js +0 -153
  181. package/src/international_street/Client.js +0 -42
  182. package/src/international_street/Lookup.js +0 -85
  183. package/src/us_autocomplete_pro/Client.js +0 -41
  184. package/src/us_autocomplete_pro/Lookup.js +0 -29
  185. package/src/us_autocomplete_pro/Suggestion.js +0 -19
  186. package/src/us_enrichment/Client.js +0 -112
  187. package/src/us_enrichment/Lookup.js +0 -13
  188. package/src/us_enrichment/Response.js +0 -559
  189. package/src/us_extract/Address.js +0 -17
  190. package/src/us_extract/Client.js +0 -35
  191. package/src/us_extract/Lookup.js +0 -24
  192. package/src/us_extract/Result.js +0 -21
  193. package/src/us_reverse_geo/Client.js +0 -40
  194. package/src/us_reverse_geo/Lookup.js +0 -17
  195. package/src/us_reverse_geo/Response.js +0 -17
  196. package/src/us_reverse_geo/Result.js +0 -36
  197. package/src/us_street/Candidate.js +0 -89
  198. package/src/us_street/Client.js +0 -43
  199. package/src/us_street/Lookup.js +0 -25
  200. package/src/us_zipcode/Client.js +0 -39
  201. package/src/us_zipcode/Lookup.js +0 -16
  202. package/src/us_zipcode/Result.js +0 -45
  203. package/src/util/Sleeper.js +0 -8
  204. package/src/util/apiToSDKKeyMap.js +0 -75
  205. package/src/util/buildClients.js +0 -48
  206. package/src/util/buildInputData.js +0 -11
  207. package/src/util/buildSmartyResponse.js +0 -10
  208. package/src/util/sendBatch.js +0 -39
  209. package/tests/fixtures/MockSleeper.js +0 -10
  210. package/tests/fixtures/mock_senders.js +0 -43
  211. package/tests/international_address_autocomplete/test_Client.js +0 -86
  212. package/tests/international_address_autocomplete/test_Lookup.js +0 -55
  213. package/tests/international_street/test_Candidate.js +0 -268
  214. package/tests/international_street/test_Client.js +0 -70
  215. package/tests/international_street/test_Lookup.js +0 -108
  216. package/tests/test_AgentSender.js +0 -25
  217. package/tests/test_BaseUrlSender.js +0 -31
  218. package/tests/test_Batch.js +0 -73
  219. package/tests/test_CustomHeaderSender.js +0 -31
  220. package/tests/test_ExtractExample.js +0 -167
  221. package/tests/test_HttpSender.js +0 -93
  222. package/tests/test_LicenseSender.js +0 -40
  223. package/tests/test_RetrySender.js +0 -98
  224. package/tests/test_SigningSender.js +0 -56
  225. package/tests/test_StatusCodeSender.js +0 -95
  226. package/tests/us_autocomplete_pro/test_Client.js +0 -116
  227. package/tests/us_autocomplete_pro/test_Lookup.js +0 -11
  228. package/tests/us_autocomplete_pro/test_Suggestion.js +0 -24
  229. package/tests/us_enrichment/test_Client.js +0 -455
  230. package/tests/us_enrichment/test_Lookup.js +0 -22
  231. package/tests/us_enrichment/test_Response.js +0 -739
  232. package/tests/us_extract/test_Address.js +0 -67
  233. package/tests/us_extract/test_Client.js +0 -148
  234. package/tests/us_extract/test_Lookup.js +0 -19
  235. package/tests/us_extract/test_Result.js +0 -39
  236. package/tests/us_reverse_geo/test_Client.js +0 -48
  237. package/tests/us_reverse_geo/test_Lookup.js +0 -14
  238. package/tests/us_reverse_geo/test_Response.js +0 -44
  239. package/tests/us_street/test_Candidate.js +0 -133
  240. package/tests/us_street/test_Client.js +0 -150
  241. package/tests/us_street/test_Lookup.js +0 -29
  242. package/tests/us_zipcode/test_Client.js +0 -150
  243. package/tests/us_zipcode/test_Result.js +0 -81
@@ -1,559 +0,0 @@
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
- };
@@ -1,17 +0,0 @@
1
- const Candidate = require("../us_street/Candidate");
2
-
3
- /**
4
- * @see <a href="https://www.smarty.com/docs/cloud/us-extract-api#http-response-status">Smarty US Extract API docs</a>
5
- */
6
- class Address {
7
- constructor (responseData) {
8
- this.text = responseData.text;
9
- this.verified = responseData.verified;
10
- this.line = responseData.line;
11
- this.start = responseData.start;
12
- this.end = responseData.end;
13
- this.candidates = responseData.api_output.map(rawAddress => new Candidate(rawAddress));
14
- }
15
- }
16
-
17
- module.exports = Address;
@@ -1,35 +0,0 @@
1
- const Errors = require("../Errors");
2
- const Request = require("../Request");
3
- const Result = require("./Result");
4
- const buildInputData = require("../util/buildInputData");
5
- const keyTranslationFormat = require("../util/apiToSDKKeyMap").usExtract;
6
-
7
- /**
8
- * This client sends lookups to the Smarty US Extract API, <br>
9
- * and attaches the results to the Lookup objects.
10
- */
11
- class Client {
12
- constructor(sender) {
13
- this.sender = sender;
14
- }
15
-
16
- send(lookup) {
17
- if (typeof lookup === "undefined") throw new Errors.UndefinedLookupError();
18
-
19
- let request = new Request(lookup.text, {"Content-Type": "text/plain; charset=utf-8"});
20
- request.parameters = buildInputData(lookup, keyTranslationFormat);
21
-
22
- return new Promise((resolve, reject) => {
23
- this.sender.send(request)
24
- .then(response => {
25
- if (response.error) reject(response.error);
26
-
27
- lookup.result = new Result(response.payload);
28
- resolve(lookup);
29
- })
30
- .catch(reject);
31
- });
32
- }
33
- }
34
-
35
- module.exports = Client;
@@ -1,24 +0,0 @@
1
- /**
2
- * In addition to holding all of the input data for this lookup, this class also<br>
3
- * will contain the result of the lookup after it comes back from the API.
4
- * @see "https://www.smarty.com/docs/cloud/us-extract-api#http-request-input-fields"
5
- */
6
- class Lookup {
7
- /**
8
- * @param text The text that is to have addresses extracted out of it for verification (required)
9
- */
10
- constructor(text) {
11
- this.result = {
12
- meta: {},
13
- addresses: [],
14
- };
15
- //TODO: require the text field.
16
- this.text = text;
17
- this.html = undefined;
18
- this.aggressive = undefined;
19
- this.addressesHaveLineBreaks = undefined;
20
- this.addressesPerLine = undefined;
21
- }
22
- }
23
-
24
- module.exports = Lookup;