From 8b3893e7af0662444e698e866b2bc3b4e2f5dbd8 Mon Sep 17 00:00:00 2001 From: NamSor SAS Date: Tue, 19 Oct 2021 10:10:14 +0200 Subject: [PATCH] regen16 --- README.md | 150 +-- build.gradle | 2 +- build.sbt | 2 +- docs/AdminApi.md | 120 ++- ...tchFirstLastNameGeoSubclassificationOut.md | 10 + docs/FirstLastNameDiasporaedOut.md | 2 + docs/FirstLastNameGenderedOut.md | 4 +- docs/FirstLastNameGeoSubclassificationOut.md | 20 + docs/FirstLastNameOriginedOut.md | 4 +- docs/FirstLastNamePhoneNumberGeoIn.md | 1 - docs/FirstLastNamePhoneNumberIn.md | 1 - docs/FirstLastNameUSRaceEthnicityOut.md | 4 +- docs/JapaneseApi.md | 20 +- docs/NameMatchedOut.md | 10 +- docs/PersonalApi.md | 112 ++ docs/PersonalNameGenderedOut.md | 4 +- docs/PersonalNameGeoOut.md | 4 +- docs/PersonalNameParsedOut.md | 52 +- pom.xml | 2 +- run-java.bash | 2 +- .../java/com/namsor/sdk2/api/AdminApi.java | 300 +++++- .../java/com/namsor/sdk2/api/ChineseApi.java | 2 +- .../java/com/namsor/sdk2/api/GeneralApi.java | 2 +- .../java/com/namsor/sdk2/api/JapaneseApi.java | 78 +- .../java/com/namsor/sdk2/api/PersonalApi.java | 262 ++++- .../java/com/namsor/sdk2/api/SocialApi.java | 2 +- .../com/namsor/sdk2/invoke/ApiCallback.java | 2 +- .../com/namsor/sdk2/invoke/ApiClient.java | 4 +- .../com/namsor/sdk2/invoke/ApiException.java | 4 +- .../com/namsor/sdk2/invoke/ApiResponse.java | 2 +- .../com/namsor/sdk2/invoke/Configuration.java | 4 +- .../sdk2/invoke/GzipRequestInterceptor.java | 2 +- .../java/com/namsor/sdk2/invoke/JSON.java | 2 +- .../java/com/namsor/sdk2/invoke/Pair.java | 4 +- .../sdk2/invoke/ProgressRequestBody.java | 2 +- .../sdk2/invoke/ProgressResponseBody.java | 2 +- .../com/namsor/sdk2/invoke/StringUtil.java | 4 +- .../namsor/sdk2/invoke/auth/ApiKeyAuth.java | 4 +- .../sdk2/invoke/auth/Authentication.java | 2 +- .../sdk2/invoke/auth/HttpBasicAuth.java | 2 +- .../com/namsor/sdk2/invoke/auth/OAuth.java | 4 +- .../namsor/sdk2/invoke/auth/OAuthFlow.java | 2 +- .../sdk2/model/APIBillingPeriodUsageOut.java | 4 +- .../namsor/sdk2/model/APIClassifierOut.java | 4 +- .../sdk2/model/APIClassifierTaxonomyOut.java | 4 +- .../sdk2/model/APIClassifiersStatusOut.java | 4 +- .../namsor/sdk2/model/APICounterV2Out.java | 4 +- .../java/com/namsor/sdk2/model/APIKeyOut.java | 7 +- .../namsor/sdk2/model/APIPeriodUsageOut.java | 4 +- .../sdk2/model/APIPlanSubscriptionOut.java | 4 +- .../com/namsor/sdk2/model/APIServiceOut.java | 4 +- .../com/namsor/sdk2/model/APIServicesOut.java | 4 +- .../sdk2/model/APIUsageAggregatedOut.java | 4 +- .../namsor/sdk2/model/APIUsageHistoryOut.java | 4 +- .../namsor/sdk2/model/BatchCorridorIn.java | 4 +- .../namsor/sdk2/model/BatchCorridorOut.java | 4 +- .../BatchFirstLastNameDiasporaedOut.java | 4 +- .../model/BatchFirstLastNameGenderIn.java | 4 +- .../model/BatchFirstLastNameGenderedOut.java | 4 +- .../sdk2/model/BatchFirstLastNameGeoIn.java | 4 +- ...hFirstLastNameGeoSubclassificationOut.java | 106 ++ .../model/BatchFirstLastNameGeoZippedIn.java | 4 +- .../sdk2/model/BatchFirstLastNameIn.java | 4 +- .../model/BatchFirstLastNameOriginedOut.java | 4 +- .../BatchFirstLastNamePhoneCodedOut.java | 4 +- .../BatchFirstLastNamePhoneNumberGeoIn.java | 4 +- .../BatchFirstLastNamePhoneNumberIn.java | 4 +- .../BatchFirstLastNameUSRaceEthnicityOut.java | 4 +- .../BatchMatchPersonalFirstLastNameIn.java | 4 +- .../com/namsor/sdk2/model/BatchNameGeoIn.java | 4 +- .../com/namsor/sdk2/model/BatchNameIn.java | 4 +- .../model/BatchNameMatchCandidatesOut.java | 4 +- .../sdk2/model/BatchNameMatchedOut.java | 4 +- .../model/BatchPersonalNameGenderedOut.java | 4 +- .../sdk2/model/BatchPersonalNameGeoIn.java | 4 +- .../sdk2/model/BatchPersonalNameGeoOut.java | 4 +- .../sdk2/model/BatchPersonalNameIn.java | 4 +- .../model/BatchPersonalNameParsedOut.java | 4 +- .../model/BatchProperNounCategorizedOut.java | 4 +- .../com/namsor/sdk2/model/CorridorIn.java | 4 +- .../com/namsor/sdk2/model/CorridorOut.java | 4 +- .../namsor/sdk2/model/FeedbackLoopOut.java | 4 +- .../model/FirstLastNameDiasporaedOut.java | 60 +- .../sdk2/model/FirstLastNameGenderIn.java | 4 +- .../sdk2/model/FirstLastNameGenderedOut.java | 16 +- .../namsor/sdk2/model/FirstLastNameGeoIn.java | 4 +- .../FirstLastNameGeoSubclassificationOut.java | 351 +++++++ .../sdk2/model/FirstLastNameGeoZippedIn.java | 4 +- .../namsor/sdk2/model/FirstLastNameIn.java | 4 +- .../sdk2/model/FirstLastNameOriginedOut.java | 16 +- .../namsor/sdk2/model/FirstLastNameOut.java | 4 +- .../model/FirstLastNamePhoneCodedOut.java | 4 +- .../model/FirstLastNamePhoneNumberGeoIn.java | 31 +- .../model/FirstLastNamePhoneNumberIn.java | 33 +- .../FirstLastNameUSRaceEthnicityOut.java | 16 +- .../model/MatchPersonalFirstLastNameIn.java | 4 +- .../java/com/namsor/sdk2/model/NameGeoIn.java | 4 +- .../java/com/namsor/sdk2/model/NameIn.java | 4 +- .../sdk2/model/NameMatchCandidateOut.java | 4 +- .../sdk2/model/NameMatchCandidatesOut.java | 4 +- .../com/namsor/sdk2/model/NameMatchedOut.java | 59 +- .../sdk2/model/PersonalNameGenderedOut.java | 16 +- .../namsor/sdk2/model/PersonalNameGeoIn.java | 4 +- .../namsor/sdk2/model/PersonalNameGeoOut.java | 16 +- .../com/namsor/sdk2/model/PersonalNameIn.java | 4 +- .../sdk2/model/PersonalNameParsedOut.java | 178 +++- .../sdk2/model/ProperNounCategorizedOut.java | 4 +- .../namsor/sdk2/model/SoftwareVersionOut.java | 4 +- .../com/namsor/sdk2/api/AdminApiTest.java | 40 +- .../com/namsor/sdk2/api/ChineseApiTest.java | 2 +- .../com/namsor/sdk2/api/GeneralApiTest.java | 2 +- .../com/namsor/sdk2/api/JapaneseApiTest.java | 12 +- .../com/namsor/sdk2/api/PersonalApiTest.java | 38 +- .../com/namsor/sdk2/api/SocialApiTest.java | 2 +- .../model/APIBillingPeriodUsageOutTest.java | 2 +- .../sdk2/model/APIClassifierOutTest.java | 2 +- .../model/APIClassifierTaxonomyOutTest.java | 2 +- .../model/APIClassifiersStatusOutTest.java | 2 +- .../sdk2/model/APICounterV2OutTest.java | 2 +- .../com/namsor/sdk2/model/APIKeyOutTest.java | 2 +- .../sdk2/model/APIPeriodUsageOutTest.java | 2 +- .../model/APIPlanSubscriptionOutTest.java | 2 +- .../namsor/sdk2/model/APIServiceOutTest.java | 2 +- .../namsor/sdk2/model/APIServicesOutTest.java | 2 +- .../sdk2/model/APIUsageAggregatedOutTest.java | 2 +- .../sdk2/model/APIUsageHistoryOutTest.java | 2 +- .../sdk2/model/BatchCorridorInTest.java | 2 +- .../sdk2/model/BatchCorridorOutTest.java | 2 +- .../BatchFirstLastNameDiasporaedOutTest.java | 2 +- .../model/BatchFirstLastNameGenderInTest.java | 2 +- .../BatchFirstLastNameGenderedOutTest.java | 2 +- .../model/BatchFirstLastNameGeoInTest.java | 2 +- ...stLastNameGeoSubclassificationOutTest.java | 54 + .../BatchFirstLastNameGeoZippedInTest.java | 2 +- .../sdk2/model/BatchFirstLastNameInTest.java | 2 +- .../BatchFirstLastNameOriginedOutTest.java | 2 +- .../BatchFirstLastNamePhoneCodedOutTest.java | 2 +- ...atchFirstLastNamePhoneNumberGeoInTest.java | 2 +- .../BatchFirstLastNamePhoneNumberInTest.java | 2 +- ...chFirstLastNameUSRaceEthnicityOutTest.java | 2 +- ...BatchMatchPersonalFirstLastNameInTest.java | 2 +- .../namsor/sdk2/model/BatchNameGeoInTest.java | 2 +- .../namsor/sdk2/model/BatchNameInTest.java | 2 +- .../BatchNameMatchCandidatesOutTest.java | 2 +- .../sdk2/model/BatchNameMatchedOutTest.java | 2 +- .../BatchPersonalNameGenderedOutTest.java | 2 +- .../model/BatchPersonalNameGeoInTest.java | 2 +- .../model/BatchPersonalNameGeoOutTest.java | 2 +- .../sdk2/model/BatchPersonalNameInTest.java | 2 +- .../model/BatchPersonalNameParsedOutTest.java | 2 +- .../BatchProperNounCategorizedOutTest.java | 2 +- .../com/namsor/sdk2/model/CorridorInTest.java | 2 +- .../namsor/sdk2/model/CorridorOutTest.java | 2 +- .../sdk2/model/FeedbackLoopOutTest.java | 2 +- .../model/FirstLastNameDiasporaedOutTest.java | 18 +- .../sdk2/model/FirstLastNameGenderInTest.java | 2 +- .../model/FirstLastNameGenderedOutTest.java | 2 +- .../sdk2/model/FirstLastNameGeoInTest.java | 2 +- ...stLastNameGeoSubclassificationOutTest.java | 133 +++ .../model/FirstLastNameGeoZippedInTest.java | 2 +- .../sdk2/model/FirstLastNameInTest.java | 2 +- .../model/FirstLastNameOriginedOutTest.java | 2 +- .../sdk2/model/FirstLastNameOutTest.java | 2 +- .../model/FirstLastNamePhoneCodedOutTest.java | 2 +- .../FirstLastNamePhoneNumberGeoInTest.java | 11 +- .../model/FirstLastNamePhoneNumberInTest.java | 11 +- .../FirstLastNameUSRaceEthnicityOutTest.java | 2 +- .../MatchPersonalFirstLastNameInTest.java | 2 +- .../com/namsor/sdk2/model/NameGeoInTest.java | 2 +- .../com/namsor/sdk2/model/NameInTest.java | 2 +- .../sdk2/model/NameMatchCandidateOutTest.java | 2 +- .../model/NameMatchCandidatesOutTest.java | 2 +- .../namsor/sdk2/model/NameMatchedOutTest.java | 2 +- .../model/PersonalNameGenderedOutTest.java | 2 +- .../sdk2/model/PersonalNameGeoInTest.java | 2 +- .../sdk2/model/PersonalNameGeoOutTest.java | 2 +- .../namsor/sdk2/model/PersonalNameInTest.java | 2 +- .../sdk2/model/PersonalNameParsedOutTest.java | 2 +- .../model/ProperNounCategorizedOutTest.java | 2 +- .../sdk2/model/SoftwareVersionOutTest.java | 2 +- .../apidocs/com/namsor/sdk2/api/AdminApi.html | 376 ++++++- .../com/namsor/sdk2/api/ChineseApi.html | 8 +- .../com/namsor/sdk2/api/PersonalApi.html | 282 ++++- .../com/namsor/sdk2/api/SocialApi.html | 8 +- .../com/namsor/sdk2/invoke/ApiCallback.html | 8 +- .../com/namsor/sdk2/invoke/ApiClient.html | 8 +- .../com/namsor/sdk2/invoke/ApiException.html | 10 +- .../com/namsor/sdk2/invoke/ApiResponse.html | 8 +- .../com/namsor/sdk2/invoke/Configuration.html | 10 +- .../com/namsor/sdk2/api/AdminApi$1.class | Bin 2256 -> 2274 bytes .../com/namsor/sdk2/api/AdminApi$10.class | Bin 686 -> 1105 bytes .../com/namsor/sdk2/api/AdminApi$11.class | Bin 1080 -> 712 bytes .../com/namsor/sdk2/api/AdminApi$12.class | Bin 1104 -> 2220 bytes .../com/namsor/sdk2/api/AdminApi$13.class | Bin 705 -> 686 bytes .../com/namsor/sdk2/api/AdminApi$14.class | Bin 2227 -> 1080 bytes .../com/namsor/sdk2/api/AdminApi$15.class | Bin 694 -> 1104 bytes .../com/namsor/sdk2/api/AdminApi$16.class | Bin 1087 -> 705 bytes .../com/namsor/sdk2/api/AdminApi$17.class | Bin 1111 -> 2227 bytes .../com/namsor/sdk2/api/AdminApi$18.class | Bin 713 -> 694 bytes .../com/namsor/sdk2/api/AdminApi$19.class | Bin 2236 -> 1087 bytes .../com/namsor/sdk2/api/AdminApi$2.class | Bin 1116 -> 1134 bytes .../com/namsor/sdk2/api/AdminApi$20.class | Bin 706 -> 1111 bytes .../com/namsor/sdk2/api/AdminApi$21.class | Bin 1096 -> 713 bytes .../com/namsor/sdk2/api/AdminApi$22.class | Bin 1120 -> 2236 bytes .../com/namsor/sdk2/api/AdminApi$23.class | Bin 725 -> 706 bytes .../com/namsor/sdk2/api/AdminApi$24.class | Bin 2229 -> 1096 bytes .../com/namsor/sdk2/api/AdminApi$25.class | Bin 692 -> 1120 bytes .../com/namsor/sdk2/api/AdminApi$26.class | Bin 1089 -> 725 bytes .../com/namsor/sdk2/api/AdminApi$27.class | Bin 1113 -> 2229 bytes .../com/namsor/sdk2/api/AdminApi$28.class | Bin 711 -> 692 bytes .../com/namsor/sdk2/api/AdminApi$29.class | Bin 2256 -> 1089 bytes .../com/namsor/sdk2/api/AdminApi$3.class | Bin 1140 -> 1158 bytes .../com/namsor/sdk2/api/AdminApi$30.class | Bin 1116 -> 1113 bytes .../com/namsor/sdk2/api/AdminApi$31.class | Bin 1140 -> 711 bytes .../com/namsor/sdk2/api/AdminApi$32.class | Bin 2258 -> 2256 bytes .../com/namsor/sdk2/api/AdminApi$33.class | Bin 1118 -> 1116 bytes .../com/namsor/sdk2/api/AdminApi$34.class | Bin 1142 -> 1140 bytes .../com/namsor/sdk2/api/AdminApi$35.class | Bin 2227 -> 2258 bytes .../com/namsor/sdk2/api/AdminApi$36.class | Bin 694 -> 1118 bytes .../com/namsor/sdk2/api/AdminApi$37.class | Bin 1087 -> 1142 bytes .../com/namsor/sdk2/api/AdminApi$38.class | Bin 1111 -> 2277 bytes .../com/namsor/sdk2/api/AdminApi$39.class | Bin 713 -> 1137 bytes .../com/namsor/sdk2/api/AdminApi$4.class | Bin 2219 -> 2257 bytes .../com/namsor/sdk2/api/AdminApi$40.class | Bin 2245 -> 1161 bytes .../com/namsor/sdk2/api/AdminApi$41.class | Bin 718 -> 2227 bytes .../com/namsor/sdk2/api/AdminApi$42.class | Bin 1105 -> 694 bytes .../com/namsor/sdk2/api/AdminApi$43.class | Bin 1129 -> 1087 bytes .../com/namsor/sdk2/api/AdminApi$44.class | Bin 737 -> 1111 bytes .../com/namsor/sdk2/api/AdminApi$5.class | Bin 691 -> 1117 bytes .../com/namsor/sdk2/api/AdminApi$6.class | Bin 1079 -> 1141 bytes .../com/namsor/sdk2/api/AdminApi$7.class | Bin 1103 -> 2219 bytes .../com/namsor/sdk2/api/AdminApi$8.class | Bin 710 -> 691 bytes .../com/namsor/sdk2/api/AdminApi$9.class | Bin 2218 -> 1079 bytes .../com/namsor/sdk2/api/AdminApi.class | Bin 25344 -> 30023 bytes .../com/namsor/sdk2/api/PersonalApi$1.class | Bin 2344 -> 2344 bytes .../com/namsor/sdk2/api/PersonalApi$10.class | Bin 766 -> 766 bytes .../com/namsor/sdk2/api/PersonalApi$100.class | Bin 789 -> 789 bytes .../com/namsor/sdk2/api/PersonalApi$101.class | Bin 2283 -> 2303 bytes .../com/namsor/sdk2/api/PersonalApi$102.class | Bin 763 -> 788 bytes .../com/namsor/sdk2/api/PersonalApi$103.class | Bin 1143 -> 1163 bytes .../com/namsor/sdk2/api/PersonalApi$104.class | Bin 1167 -> 1187 bytes .../com/namsor/sdk2/api/PersonalApi$105.class | Bin 782 -> 807 bytes .../com/namsor/sdk2/api/PersonalApi$106.class | Bin 2299 -> 2301 bytes .../com/namsor/sdk2/api/PersonalApi$107.class | Bin 784 -> 791 bytes .../com/namsor/sdk2/api/PersonalApi$108.class | Bin 1159 -> 1161 bytes .../com/namsor/sdk2/api/PersonalApi$109.class | Bin 1183 -> 1185 bytes .../com/namsor/sdk2/api/PersonalApi$11.class | Bin 2255 -> 2255 bytes .../com/namsor/sdk2/api/PersonalApi$110.class | Bin 803 -> 810 bytes .../com/namsor/sdk2/api/PersonalApi$111.class | Bin 2305 -> 2283 bytes .../com/namsor/sdk2/api/PersonalApi$112.class | Bin 785 -> 763 bytes .../com/namsor/sdk2/api/PersonalApi$113.class | Bin 1165 -> 1143 bytes .../com/namsor/sdk2/api/PersonalApi$114.class | Bin 1189 -> 1167 bytes .../com/namsor/sdk2/api/PersonalApi$115.class | Bin 804 -> 782 bytes .../com/namsor/sdk2/api/PersonalApi$116.class | Bin 2308 -> 2299 bytes .../com/namsor/sdk2/api/PersonalApi$117.class | Bin 793 -> 784 bytes .../com/namsor/sdk2/api/PersonalApi$118.class | Bin 1168 -> 1159 bytes .../com/namsor/sdk2/api/PersonalApi$119.class | Bin 1192 -> 1183 bytes .../com/namsor/sdk2/api/PersonalApi$12.class | Bin 722 -> 722 bytes .../com/namsor/sdk2/api/PersonalApi$120.class | Bin 812 -> 803 bytes .../com/namsor/sdk2/api/PersonalApi$13.class | Bin 1115 -> 1115 bytes .../com/namsor/sdk2/api/PersonalApi$14.class | Bin 1139 -> 1139 bytes .../com/namsor/sdk2/api/PersonalApi$15.class | Bin 741 -> 741 bytes .../com/namsor/sdk2/api/PersonalApi$16.class | Bin 2285 -> 2285 bytes .../com/namsor/sdk2/api/PersonalApi$17.class | Bin 757 -> 757 bytes .../com/namsor/sdk2/api/PersonalApi$18.class | Bin 1145 -> 1145 bytes .../com/namsor/sdk2/api/PersonalApi$19.class | Bin 1169 -> 1169 bytes .../com/namsor/sdk2/api/PersonalApi$2.class | Bin 804 -> 804 bytes .../com/namsor/sdk2/api/PersonalApi$20.class | Bin 776 -> 776 bytes .../com/namsor/sdk2/api/PersonalApi$21.class | Bin 2292 -> 2292 bytes .../com/namsor/sdk2/api/PersonalApi$22.class | Bin 767 -> 767 bytes .../com/namsor/sdk2/api/PersonalApi$23.class | Bin 1152 -> 1152 bytes .../com/namsor/sdk2/api/PersonalApi$24.class | Bin 1176 -> 1176 bytes .../com/namsor/sdk2/api/PersonalApi$25.class | Bin 786 -> 786 bytes .../com/namsor/sdk2/api/PersonalApi$26.class | Bin 2290 -> 2290 bytes .../com/namsor/sdk2/api/PersonalApi$27.class | Bin 770 -> 770 bytes .../com/namsor/sdk2/api/PersonalApi$28.class | Bin 1150 -> 1150 bytes .../com/namsor/sdk2/api/PersonalApi$29.class | Bin 1174 -> 1174 bytes .../com/namsor/sdk2/api/PersonalApi$3.class | Bin 1204 -> 1204 bytes .../com/namsor/sdk2/api/PersonalApi$30.class | Bin 789 -> 789 bytes .../com/namsor/sdk2/api/PersonalApi$31.class | Bin 2272 -> 2272 bytes .../com/namsor/sdk2/api/PersonalApi$32.class | Bin 745 -> 745 bytes .../com/namsor/sdk2/api/PersonalApi$33.class | Bin 1132 -> 1132 bytes .../com/namsor/sdk2/api/PersonalApi$34.class | Bin 1156 -> 1156 bytes .../com/namsor/sdk2/api/PersonalApi$35.class | Bin 764 -> 764 bytes .../com/namsor/sdk2/api/PersonalApi$36.class | Bin 2285 -> 2285 bytes .../com/namsor/sdk2/api/PersonalApi$37.class | Bin 763 -> 763 bytes .../com/namsor/sdk2/api/PersonalApi$38.class | Bin 1145 -> 1145 bytes .../com/namsor/sdk2/api/PersonalApi$39.class | Bin 1169 -> 1169 bytes .../com/namsor/sdk2/api/PersonalApi$4.class | Bin 1228 -> 1228 bytes .../com/namsor/sdk2/api/PersonalApi$40.class | Bin 782 -> 782 bytes .../com/namsor/sdk2/api/PersonalApi$41.class | Bin 2258 -> 2258 bytes .../com/namsor/sdk2/api/PersonalApi$42.class | Bin 730 -> 730 bytes .../com/namsor/sdk2/api/PersonalApi$43.class | Bin 1118 -> 1118 bytes .../com/namsor/sdk2/api/PersonalApi$44.class | Bin 1142 -> 1142 bytes .../com/namsor/sdk2/api/PersonalApi$45.class | Bin 749 -> 749 bytes .../com/namsor/sdk2/api/PersonalApi$46.class | Bin 2288 -> 2288 bytes .../com/namsor/sdk2/api/PersonalApi$47.class | Bin 765 -> 765 bytes .../com/namsor/sdk2/api/PersonalApi$48.class | Bin 1148 -> 1148 bytes .../com/namsor/sdk2/api/PersonalApi$49.class | Bin 1172 -> 1172 bytes .../com/namsor/sdk2/api/PersonalApi$5.class | Bin 823 -> 823 bytes .../com/namsor/sdk2/api/PersonalApi$50.class | Bin 784 -> 784 bytes .../com/namsor/sdk2/api/PersonalApi$51.class | Bin 2279 -> 2279 bytes .../com/namsor/sdk2/api/PersonalApi$52.class | Bin 751 -> 751 bytes .../com/namsor/sdk2/api/PersonalApi$53.class | Bin 1139 -> 1139 bytes .../com/namsor/sdk2/api/PersonalApi$54.class | Bin 1163 -> 1163 bytes .../com/namsor/sdk2/api/PersonalApi$55.class | Bin 770 -> 770 bytes .../com/namsor/sdk2/api/PersonalApi$56.class | Bin 2294 -> 2294 bytes .../com/namsor/sdk2/api/PersonalApi$57.class | Bin 771 -> 771 bytes .../com/namsor/sdk2/api/PersonalApi$58.class | Bin 1154 -> 1154 bytes .../com/namsor/sdk2/api/PersonalApi$59.class | Bin 1178 -> 1178 bytes .../com/namsor/sdk2/api/PersonalApi$6.class | Bin 2280 -> 2280 bytes .../com/namsor/sdk2/api/PersonalApi$60.class | Bin 790 -> 790 bytes .../com/namsor/sdk2/api/PersonalApi$61.class | Bin 2293 -> 2293 bytes .../com/namsor/sdk2/api/PersonalApi$62.class | Bin 766 -> 766 bytes .../com/namsor/sdk2/api/PersonalApi$63.class | Bin 1153 -> 1153 bytes .../com/namsor/sdk2/api/PersonalApi$64.class | Bin 1177 -> 1177 bytes .../com/namsor/sdk2/api/PersonalApi$65.class | Bin 785 -> 785 bytes .../com/namsor/sdk2/api/PersonalApi$66.class | Bin 2291 -> 2291 bytes .../com/namsor/sdk2/api/PersonalApi$67.class | Bin 769 -> 769 bytes .../com/namsor/sdk2/api/PersonalApi$68.class | Bin 1151 -> 1151 bytes .../com/namsor/sdk2/api/PersonalApi$69.class | Bin 1175 -> 1175 bytes .../com/namsor/sdk2/api/PersonalApi$7.class | Bin 745 -> 745 bytes .../com/namsor/sdk2/api/PersonalApi$70.class | Bin 788 -> 788 bytes .../com/namsor/sdk2/api/PersonalApi$71.class | Bin 2272 -> 2272 bytes .../com/namsor/sdk2/api/PersonalApi$72.class | Bin 745 -> 745 bytes .../com/namsor/sdk2/api/PersonalApi$73.class | Bin 1132 -> 1132 bytes .../com/namsor/sdk2/api/PersonalApi$74.class | Bin 1156 -> 1156 bytes .../com/namsor/sdk2/api/PersonalApi$75.class | Bin 764 -> 764 bytes .../com/namsor/sdk2/api/PersonalApi$76.class | Bin 2285 -> 2285 bytes .../com/namsor/sdk2/api/PersonalApi$77.class | Bin 763 -> 763 bytes .../com/namsor/sdk2/api/PersonalApi$78.class | Bin 1145 -> 1145 bytes .../com/namsor/sdk2/api/PersonalApi$79.class | Bin 1169 -> 1169 bytes .../com/namsor/sdk2/api/PersonalApi$8.class | Bin 1140 -> 1140 bytes .../com/namsor/sdk2/api/PersonalApi$80.class | Bin 782 -> 782 bytes .../com/namsor/sdk2/api/PersonalApi$81.class | Bin 2257 -> 2257 bytes .../com/namsor/sdk2/api/PersonalApi$82.class | Bin 727 -> 727 bytes .../com/namsor/sdk2/api/PersonalApi$83.class | Bin 1117 -> 1117 bytes .../com/namsor/sdk2/api/PersonalApi$84.class | Bin 1141 -> 1141 bytes .../com/namsor/sdk2/api/PersonalApi$85.class | Bin 746 -> 746 bytes .../com/namsor/sdk2/api/PersonalApi$86.class | Bin 2287 -> 2287 bytes .../com/namsor/sdk2/api/PersonalApi$87.class | Bin 762 -> 762 bytes .../com/namsor/sdk2/api/PersonalApi$88.class | Bin 1147 -> 1147 bytes .../com/namsor/sdk2/api/PersonalApi$89.class | Bin 1171 -> 1171 bytes .../com/namsor/sdk2/api/PersonalApi$9.class | Bin 1164 -> 1164 bytes .../com/namsor/sdk2/api/PersonalApi$90.class | Bin 781 -> 781 bytes .../com/namsor/sdk2/api/PersonalApi$91.class | Bin 2278 -> 2278 bytes .../com/namsor/sdk2/api/PersonalApi$92.class | Bin 748 -> 748 bytes .../com/namsor/sdk2/api/PersonalApi$93.class | Bin 1138 -> 1138 bytes .../com/namsor/sdk2/api/PersonalApi$94.class | Bin 1162 -> 1162 bytes .../com/namsor/sdk2/api/PersonalApi$95.class | Bin 767 -> 767 bytes .../com/namsor/sdk2/api/PersonalApi$96.class | Bin 2293 -> 2293 bytes .../com/namsor/sdk2/api/PersonalApi$97.class | Bin 768 -> 768 bytes .../com/namsor/sdk2/api/PersonalApi$98.class | Bin 1153 -> 1153 bytes .../com/namsor/sdk2/api/PersonalApi$99.class | Bin 1177 -> 1177 bytes .../com/namsor/sdk2/api/PersonalApi.class | Bin 67317 -> 72771 bytes .../com/namsor/sdk2/invoke/ApiClient.class | Bin 31118 -> 31118 bytes .../com/namsor/sdk2/model/APIKeyOut.class | Bin 6769 -> 6687 bytes .../model/FirstLastNameDiasporaedOut.class | Bin 7854 -> 9066 bytes .../sdk2/model/FirstLastNameGenderedOut.class | Bin 6323 -> 6349 bytes .../sdk2/model/FirstLastNameOriginedOut.class | Bin 9301 -> 9351 bytes .../model/FirstLastNamePhoneNumberGeoIn.class | Bin 5163 -> 4355 bytes .../model/FirstLastNamePhoneNumberIn.class | Bin 4246 -> 3442 bytes .../FirstLastNameUSRaceEthnicityOut.class | Bin 8776 -> 8826 bytes .../sdk2/model/PersonalNameGenderedOut.class | Bin 5729 -> 5755 bytes .../sdk2/model/PersonalNameGeoOut.class | Bin 8310 -> 8360 bytes .../sdk2/model/PersonalNameParsedOut.class | Bin 5461 -> 6336 bytes target/maven-archiver/pom.properties | 4 +- .../compile/default-compile/createdFiles.lst | 979 +++++++++--------- .../compile/default-compile/inputFiles.lst | 201 ++-- .../default-testCompile/createdFiles.lst | 165 ++- .../default-testCompile/inputFiles.lst | 165 ++- .../TEST-com.namsor.sdk2.api.AdminApiTest.xml | 70 +- ...EST-com.namsor.sdk2.api.ChineseApiTest.xml | 70 +- ...ST-com.namsor.sdk2.api.PersonalApiTest.xml | 70 +- ...TEST-com.namsor.sdk2.api.SocialApiTest.xml | 70 +- ...dk2.model.APIBillingPeriodUsageOutTest.xml | 74 +- ....namsor.sdk2.model.APICounterV2OutTest.xml | 72 +- ...ST-com.namsor.sdk2.model.APIKeyOutTest.xml | 74 +- ...amsor.sdk2.model.APIPeriodUsageOutTest.xml | 72 +- ....sdk2.model.APIPlanSubscriptionOutTest.xml | 86 +- ...om.namsor.sdk2.model.APIServiceOutTest.xml | 72 +- ...m.namsor.sdk2.model.APIServicesOutTest.xml | 68 +- ...r.sdk2.model.APIUsageAggregatedOutTest.xml | 74 +- ...el.BatchFirstLastNameDiasporaedOutTest.xml | 72 +- ...2.model.BatchFirstLastNameGenderInTest.xml | 74 +- ...odel.BatchFirstLastNameGenderedOutTest.xml | 74 +- ...sdk2.model.BatchFirstLastNameGeoInTest.xml | 68 +- ...odel.BatchFirstLastNameGeoZippedInTest.xml | 68 +- ...or.sdk2.model.BatchFirstLastNameInTest.xml | 68 +- ...odel.BatchFirstLastNameOriginedOutTest.xml | 74 +- ...el.BatchFirstLastNamePhoneCodedOutTest.xml | 68 +- ...BatchFirstLastNamePhoneNumberGeoInTest.xml | 72 +- ...el.BatchFirstLastNamePhoneNumberInTest.xml | 72 +- ...tchFirstLastNameUSRaceEthnicityOutTest.xml | 68 +- ....model.BatchNameMatchCandidatesOutTest.xml | 72 +- ...model.BatchPersonalNameGenderedOutTest.xml | 68 +- ....sdk2.model.BatchPersonalNameGeoInTest.xml | 68 +- ...sdk2.model.BatchPersonalNameGeoOutTest.xml | 72 +- ...sor.sdk2.model.BatchPersonalNameInTest.xml | 72 +- ...2.model.BatchPersonalNameParsedOutTest.xml | 74 +- ....namsor.sdk2.model.FeedbackLoopOutTest.xml | 72 +- ...2.model.FirstLastNameDiasporaedOutTest.xml | 74 +- ...r.sdk2.model.FirstLastNameGenderInTest.xml | 74 +- ...dk2.model.FirstLastNameGenderedOutTest.xml | 72 +- ...msor.sdk2.model.FirstLastNameGeoInTest.xml | 72 +- ...dk2.model.FirstLastNameGeoZippedInTest.xml | 72 +- ....namsor.sdk2.model.FirstLastNameInTest.xml | 72 +- ...dk2.model.FirstLastNameOriginedOutTest.xml | 72 +- ...namsor.sdk2.model.FirstLastNameOutTest.xml | 76 +- ...2.model.FirstLastNamePhoneCodedOutTest.xml | 74 +- ...odel.FirstLastNamePhoneNumberGeoInTest.xml | 77 +- ...2.model.FirstLastNamePhoneNumberInTest.xml | 73 +- ...el.FirstLastNameUSRaceEthnicityOutTest.xml | 68 +- ...r.sdk2.model.NameMatchCandidateOutTest.xml | 72 +- ....sdk2.model.NameMatchCandidatesOutTest.xml | 76 +- ...sdk2.model.PersonalNameGenderedOutTest.xml | 76 +- ...amsor.sdk2.model.PersonalNameGeoInTest.xml | 68 +- ...msor.sdk2.model.PersonalNameGeoOutTest.xml | 72 +- ...m.namsor.sdk2.model.PersonalNameInTest.xml | 72 +- ...r.sdk2.model.PersonalNameParsedOutTest.xml | 72 +- ...msor.sdk2.model.SoftwareVersionOutTest.xml | 68 +- ...dk2.model.APIBillingPeriodUsageOutTest.txt | 2 +- .../com.namsor.sdk2.model.APIKeyOutTest.txt | 2 +- ...amsor.sdk2.model.APIPeriodUsageOutTest.txt | 2 +- ....sdk2.model.APIPlanSubscriptionOutTest.txt | 2 +- ...om.namsor.sdk2.model.APIServiceOutTest.txt | 2 +- ...r.sdk2.model.APIUsageAggregatedOutTest.txt | 2 +- ...el.BatchFirstLastNameDiasporaedOutTest.txt | 2 +- ...2.model.BatchFirstLastNameGenderInTest.txt | 2 +- ...odel.BatchFirstLastNameGenderedOutTest.txt | 2 +- ...odel.BatchFirstLastNameOriginedOutTest.txt | 2 +- ...BatchFirstLastNamePhoneNumberGeoInTest.txt | 2 +- ...el.BatchFirstLastNamePhoneNumberInTest.txt | 2 +- ....model.BatchNameMatchCandidatesOutTest.txt | 2 +- ...sdk2.model.BatchPersonalNameGeoOutTest.txt | 2 +- ...sor.sdk2.model.BatchPersonalNameInTest.txt | 2 +- ...2.model.BatchPersonalNameParsedOutTest.txt | 2 +- ....namsor.sdk2.model.FeedbackLoopOutTest.txt | 2 +- ...2.model.FirstLastNameDiasporaedOutTest.txt | 2 +- ...r.sdk2.model.FirstLastNameGenderInTest.txt | 2 +- ...dk2.model.FirstLastNameGenderedOutTest.txt | 2 +- ...msor.sdk2.model.FirstLastNameGeoInTest.txt | 2 +- ...dk2.model.FirstLastNameGeoZippedInTest.txt | 2 +- ....namsor.sdk2.model.FirstLastNameInTest.txt | 2 +- ...namsor.sdk2.model.FirstLastNameOutTest.txt | 2 +- ...2.model.FirstLastNamePhoneCodedOutTest.txt | 2 +- ...odel.FirstLastNamePhoneNumberGeoInTest.txt | 2 +- ...2.model.FirstLastNamePhoneNumberInTest.txt | 2 +- ...r.sdk2.model.NameMatchCandidateOutTest.txt | 2 +- ....sdk2.model.NameMatchCandidatesOutTest.txt | 2 +- ...sdk2.model.PersonalNameGenderedOutTest.txt | 2 +- ...m.namsor.sdk2.model.PersonalNameInTest.txt | 2 +- .../com/namsor/sdk2/api/AdminApiTest.class | Bin 2925 -> 3356 bytes .../com/namsor/sdk2/api/PersonalApiTest.class | Bin 8594 -> 9350 bytes .../FirstLastNameDiasporaedOutTest.class | Bin 1503 -> 1700 bytes .../FirstLastNamePhoneNumberGeoInTest.class | Bin 1290 -> 1190 bytes .../FirstLastNamePhoneNumberInTest.class | Bin 1095 -> 995 bytes 457 files changed, 5324 insertions(+), 3350 deletions(-) create mode 100644 docs/BatchFirstLastNameGeoSubclassificationOut.md create mode 100644 docs/FirstLastNameGeoSubclassificationOut.md create mode 100644 src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoSubclassificationOut.java create mode 100644 src/main/java/com/namsor/sdk2/model/FirstLastNameGeoSubclassificationOut.java create mode 100644 src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoSubclassificationOutTest.java create mode 100644 src/test/java/com/namsor/sdk2/model/FirstLastNameGeoSubclassificationOutTest.java diff --git a/README.md b/README.md index c49e9bf4..bc9e7776 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,11 @@ -# namsor-sdk2 Java SDK classifies personal names by gender, country of origin, or ethnicity. - -NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! +# namsor-sdk2 NamSor API v2 -- API version: 2.0.15 - - Build date: 2021-07-17T18:27:27.141+02:00[Europe/Berlin] +- API version: 2.0.16 + - Build date: 2021-10-19T10:09:03.048+02:00[Europe/Berlin] NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! - -Refer to the [NamSor API Doc](https://v2.namsor.com/NamSorAPIv2/apidoc.html) for detailed API documentation. - -Also, have a look at the Wiki [NamSor Wiki Doc](https://github.com/namsor/namsor-tools-v2/wiki/NamSor-Tools-V2) for release notes and taxonomies. - For more information, please visit [http://www.namsor.com/](http://www.namsor.com/) *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* @@ -48,7 +41,7 @@ Add this dependency to your project's POM: com.namsor namsor-sdk2 - 2.0.15 + 2.0.16 compile ``` @@ -58,7 +51,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.namsor:namsor-sdk2:2.0.15" +compile "com.namsor:namsor-sdk2:2.0.16" ``` ### Others @@ -71,7 +64,7 @@ mvn clean package Then manually install the following JARs: -* `target/namsor-sdk2-2.0.15.jar` +* `target/namsor-sdk2-2.0.16.jar` * `target/lib/*.jar` ## Getting Started @@ -79,17 +72,16 @@ Then manually install the following JARs: Please follow the [installation](#installation) instruction and execute the following Java code: ```java -package com.namsor.namsorsample; import com.namsor.sdk2.invoke.*; import com.namsor.sdk2.invoke.auth.*; import com.namsor.sdk2.model.*; -import com.namsor.sdk2.api.PersonalApi; +import com.namsor.sdk2.api.AdminApi; import java.io.File; import java.util.*; -public class PersonalApiSample { +public class AdminApiExample { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); @@ -100,105 +92,29 @@ public class PersonalApiSample { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //api_key.setApiKeyPrefix("Token"); - PersonalApi apiInstance = new PersonalApi(); - - // should contain 10 to 100 names at a time, per API call - BatchFirstLastNameIn batchFirstLastNameIn = new BatchFirstLastNameIn(); // BatchFirstLastNameIn | A list of personal names - batchFirstLastNameIn.setPersonalNames(new ArrayList()); - FirstLastNameIn name1 = new FirstLastNameIn(); - name1.setId("123"); - name1.setFirstName("Mary"); - name1.setLastName("O'Neil"); - batchFirstLastNameIn.getPersonalNames().add(name1); - FirstLastNameIn name2 = new FirstLastNameIn(); - name2.setId("234"); - name2.setFirstName("Roberto"); - name2.setLastName("Rossini"); - batchFirstLastNameIn.getPersonalNames().add(name2); + AdminApi apiInstance = new AdminApi(); + String source = "source_example"; // String | + Boolean anonymized = true; // Boolean | + String token = "token_example"; // String | try { - BatchFirstLastNameOriginedOut result = apiInstance.originBatch(batchFirstLastNameIn); - System.out.println(result); + apiInstance.anonymize(source, anonymized, token); } catch (ApiException e) { - System.err.println("Exception when calling PersonalApi#originBatch"); + System.err.println("Exception when calling AdminApi#anonymize"); e.printStackTrace(); } } - } -This will output the following : -```javascript -class BatchFirstLastNameOriginedOut { - personalNames: [class FirstLastNameOriginedOut { - id: 123 - firstName: Mary - lastName: O'Neil - countryOrigin: IE - countryOriginAlt: GB - countriesOriginTop: [IE, GB, KE, GH, LR, FR, TZ, NG, IL, EG] - score: 26.729154354675913 - regionOrigin: Europe - topRegionOrigin: Europe - subRegionOrigin: Northern Europe - probabilityCalibrated: 0.9303604468868103 - probabilityAltCalibrated: 0.9930598411485871 - }, class FirstLastNameOriginedOut { - id: 123 - firstName: Roberto - lastName: Rossini - countryOrigin: IT - countryOriginAlt: ES - countriesOriginTop: [IT, ES, CH, ID, PT, ZA, IL, AT, FI, FR] - score: 36.490714227516584 - regionOrigin: Europe - topRegionOrigin: Europe - subRegionOrigin: Southern Europe - probabilityCalibrated: 0.9824811693994274 - probabilityAltCalibrated: 0.9930598411485871 - }] -} ``` -## Documentation for Authorization - -Authentication schemes defined for the API: -### api_key - -- **Type**: API key -- **API key parameter name**: X-API-KEY -- **Location**: HTTP header - - ## Documentation for API Endpoints All URIs are relative to *https://v2.namsor.com/NamSorAPIv2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*PersonalApi* | [**gender**](docs/PersonalApi.md#gender) | **GET** /api2/json/gender/{firstName}/{lastName} | Infer the likely gender of a name. -*PersonalApi* | [**genderBatch**](docs/PersonalApi.md#genderBatch) | **POST** /api2/json/genderBatch | Infer the likely gender of up to 100 names, detecting automatically the cultural context. -*PersonalApi* | [**genderFull**](docs/PersonalApi.md#genderFull) | **GET** /api2/json/genderFull/{fullName} | Infer the likely gender of a full name, ex. John H. Smith -*PersonalApi* | [**genderFullBatch**](docs/PersonalApi.md#genderFullBatch) | **POST** /api2/json/genderFullBatch | Infer the likely gender of up to 100 full names, detecting automatically the cultural context. -*PersonalApi* | [**genderFullGeo**](docs/PersonalApi.md#genderFullGeo) | **GET** /api2/json/genderFullGeo/{fullName}/{countryIso2} | Infer the likely gender of a full name, given a local context (ISO2 country code). -*PersonalApi* | [**genderFullGeoBatch**](docs/PersonalApi.md#genderFullGeoBatch) | **POST** /api2/json/genderFullGeoBatch | Infer the likely gender of up to 100 full names, with a given cultural context (country ISO2 code). -*PersonalApi* | [**genderGeo**](docs/PersonalApi.md#genderGeo) | **GET** /api2/json/genderGeo/{firstName}/{lastName}/{countryIso2} | Infer the likely gender of a name, given a local context (ISO2 country code). -*PersonalApi* | [**genderGeoBatch**](docs/PersonalApi.md#genderGeoBatch) | **POST** /api2/json/genderGeoBatch | Infer the likely gender of up to 100 names, each given a local context (ISO2 country code). -*PersonalApi* | [**origin**](docs/PersonalApi.md#origin) | **GET** /api2/json/origin/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead. -*PersonalApi* | [**originBatch**](docs/PersonalApi.md#originBatch) | **POST** /api2/json/originBatch | [USES 10 UNITS PER NAME] Infer the likely country of origin of up to 100 names, detecting automatically the cultural context. -*PersonalApi* | [**country**](docs/PersonalApi.md#country) | **GET** /api2/json/country/{personalNameFull} | [USES 10 UNITS PER NAME] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin. -*PersonalApi* | [**countryBatch**](docs/PersonalApi.md#countryBatch) | **POST** /api2/json/countryBatch | [USES 10 UNITS PER NAME] Infer the likely country of residence of up to 100 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin. -*PersonalApi* | [**diaspora**](docs/PersonalApi.md#diaspora) | **GET** /api2/json/diaspora/{countryIso2}/{firstName}/{lastName} | [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) -*PersonalApi* | [**diasporaBatch**](docs/PersonalApi.md#diasporaBatch) | **POST** /api2/json/diasporaBatch | [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of up to 100 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) -*PersonalApi* | [**parseName**](docs/PersonalApi.md#parseName) | **GET** /api2/json/parseName/{nameFull} | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. -*PersonalApi* | [**parseNameBatch**](docs/PersonalApi.md#parseNameBatch) | **POST** /api2/json/parseNameBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. -*PersonalApi* | [**parseNameGeo**](docs/PersonalApi.md#parseNameGeo) | **GET** /api2/json/parseName/{nameFull}/{countryIso2} | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. For better accuracy, provide a geographic context. -*PersonalApi* | [**parseNameGeoBatch**](docs/PersonalApi.md#parseNameGeoBatch) | **POST** /api2/json/parseNameGeoBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. Giving a local context improves precision. -*PersonalApi* | [**usRaceEthnicity**](docs/PersonalApi.md#usRaceEthnicity) | **GET** /api2/json/usRaceEthnicity/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). -*PersonalApi* | [**usRaceEthnicityBatch**](docs/PersonalApi.md#usRaceEthnicityBatch) | **POST** /api2/json/usRaceEthnicityBatch | [USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). -*PersonalApi* | [**usRaceEthnicityZIP5**](docs/PersonalApi.md#usRaceEthnicityZIP5) | **GET** /api2/json/usRaceEthnicityZIP5/{firstName}/{lastName}/{zip5Code} | [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). -*PersonalApi* | [**usZipRaceEthnicityBatch**](docs/PersonalApi.md#usZipRaceEthnicityBatch) | **POST** /api2/json/usZipRaceEthnicityBatch | [USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). -*PersonalApi* | [**corridor**](docs/PersonalApi.md#corridor) | **GET** /api2/json/corridor/{countryIso2From}/{firstNameFrom}/{lastNameFrom}/{countryIso2To}/{firstNameTo}/{lastNameTo} | [USES 20 UNITS PER NAME COUPLE] Infer several classifications for a cross border interaction between names (ex. remit, travel, intl com) -*PersonalApi* | [**corridorBatch**](docs/PersonalApi.md#corridorBatch) | **POST** /api2/json/corridorBatch | [USES 20 UNITS PER NAME PAIR] Infer several classifications for up to 100 cross border interaction between names (ex. remit, travel, intl com) +*AdminApi* | [**anonymize**](docs/AdminApi.md#anonymize) | **GET** /api2/json/anonymize/{source}/{anonymized}/{token} | Activate/deactivate anonymization for a source. +*AdminApi* | [**anonymize1**](docs/AdminApi.md#anonymize1) | **GET** /api2/json/anonymize/{source}/{anonymized} | Activate/deactivate anonymization for a source. *AdminApi* | [**apiStatus**](docs/AdminApi.md#apiStatus) | **GET** /api2/json/apiStatus | Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices. *AdminApi* | [**apiUsage**](docs/AdminApi.md#apiUsage) | **GET** /api2/json/apiUsage | Print current API usage. *AdminApi* | [**apiUsageHistory**](docs/AdminApi.md#apiUsageHistory) | **GET** /api2/json/apiUsageHistory | Print historical API usage. @@ -206,7 +122,7 @@ Class | Method | HTTP request | Description *AdminApi* | [**availableServices**](docs/AdminApi.md#availableServices) | **GET** /api2/json/apiServices | List of classification services and usage cost in Units per classification (default is 1=ONE Unit). Some API endpoints (ex. Corridor) combine multiple classifiers. *AdminApi* | [**disable**](docs/AdminApi.md#disable) | **GET** /api2/json/disable/{source}/{disabled} | Activate/deactivate an API Key. *AdminApi* | [**learnable**](docs/AdminApi.md#learnable) | **GET** /api2/json/learnable/{source}/{learnable} | Activate/deactivate learning from a source. -*AdminApi* | [**anonymize**](docs/AdminApi.md#anonymize) | **GET** /api2/json/anonymize/{source}/{anonymized} | Activate/deactivate anonymization for a source. +*AdminApi* | [**learnable1**](docs/AdminApi.md#learnable1) | **GET** /api2/json/learnable/{source}/{learnable}/{token} | Activate/deactivate learning from a source. *AdminApi* | [**softwareVersion**](docs/AdminApi.md#softwareVersion) | **GET** /api2/json/softwareVersion | Get the current software version *AdminApi* | [**taxonomyClasses**](docs/AdminApi.md#taxonomyClasses) | **GET** /api2/json/taxonomyClasses/{classifierName} | Print the taxonomy classes valid for the given classifier. *ChineseApi* | [**chineseNameCandidates**](docs/ChineseApi.md#chineseNameCandidates) | **GET** /api2/json/chineseNameCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin} | Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming @@ -232,8 +148,8 @@ Class | Method | HTTP request | Description *JapaneseApi* | [**genderJapaneseNamePinyin**](docs/JapaneseApi.md#genderJapaneseNamePinyin) | **GET** /api2/json/genderJapaneseName/{japaneseSurname}/{japaneseGivenName} | Infer the likely gender of a Japanese name in LATIN (Pinyin). *JapaneseApi* | [**genderJapaneseNamePinyinBatch**](docs/JapaneseApi.md#genderJapaneseNamePinyinBatch) | **POST** /api2/json/genderJapaneseNameBatch | Infer the likely gender of up to 100 Japanese names in LATIN (Pinyin). *JapaneseApi* | [**japaneseNameGenderKanjiCandidatesBatch**](docs/JapaneseApi.md#japaneseNameGenderKanjiCandidatesBatch) | **POST** /api2/json/japaneseNameGenderKanjiCandidatesBatch | Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname) with KNOWN gender, ex. Yamamoto Sanae -*JapaneseApi* | [**japaneseNameKanjiCandidates**](docs/JapaneseApi.md#japaneseNameKanjiCandidates) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. -*JapaneseApi* | [**japaneseNameKanjiCandidates1**](docs/JapaneseApi.md#japaneseNameKanjiCandidates1) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae +*JapaneseApi* | [**japaneseNameKanjiCandidates**](docs/JapaneseApi.md#japaneseNameKanjiCandidates) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae +*JapaneseApi* | [**japaneseNameKanjiCandidates1**](docs/JapaneseApi.md#japaneseNameKanjiCandidates1) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. *JapaneseApi* | [**japaneseNameKanjiCandidatesBatch**](docs/JapaneseApi.md#japaneseNameKanjiCandidatesBatch) | **POST** /api2/json/japaneseNameKanjiCandidatesBatch | Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname), ex. Yamamoto Sanae *JapaneseApi* | [**japaneseNameLatinCandidates**](docs/JapaneseApi.md#japaneseNameLatinCandidates) | **GET** /api2/json/japaneseNameLatinCandidates/{japaneseSurnameKanji}/{japaneseGivenNameKanji} | Romanize japanese name, based on the name in Kanji. *JapaneseApi* | [**japaneseNameLatinCandidatesBatch**](docs/JapaneseApi.md#japaneseNameLatinCandidatesBatch) | **POST** /api2/json/japaneseNameLatinCandidatesBatch | Romanize japanese names, based on the name in KANJI @@ -242,6 +158,32 @@ Class | Method | HTTP request | Description *JapaneseApi* | [**japaneseNameMatchFeedbackLoop**](docs/JapaneseApi.md#japaneseNameMatchFeedbackLoop) | **GET** /api2/json/japaneseNameMatchFeedbackLoop/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{japaneseName} | [CREDITS 1 UNIT] Feedback loop to better perform matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae *JapaneseApi* | [**parseJapaneseName**](docs/JapaneseApi.md#parseJapaneseName) | **GET** /api2/json/parseJapaneseName/{japaneseName} | Infer the likely first/last name structure of a name, ex. 山本 早苗 or Yamamoto Sanae *JapaneseApi* | [**parseJapaneseNameBatch**](docs/JapaneseApi.md#parseJapaneseNameBatch) | **POST** /api2/json/parseJapaneseNameBatch | Infer the likely first/last name structure of a name, ex. 山本 早苗 or Yamamoto Sanae +*PersonalApi* | [**corridor**](docs/PersonalApi.md#corridor) | **GET** /api2/json/corridor/{countryIso2From}/{firstNameFrom}/{lastNameFrom}/{countryIso2To}/{firstNameTo}/{lastNameTo} | [USES 20 UNITS PER NAME COUPLE] Infer several classifications for a cross border interaction between names (ex. remit, travel, intl com) +*PersonalApi* | [**corridorBatch**](docs/PersonalApi.md#corridorBatch) | **POST** /api2/json/corridorBatch | [USES 20 UNITS PER NAME PAIR] Infer several classifications for up to 100 cross border interaction between names (ex. remit, travel, intl com) +*PersonalApi* | [**country**](docs/PersonalApi.md#country) | **GET** /api2/json/country/{personalNameFull} | [USES 10 UNITS PER NAME] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin. +*PersonalApi* | [**countryBatch**](docs/PersonalApi.md#countryBatch) | **POST** /api2/json/countryBatch | [USES 10 UNITS PER NAME] Infer the likely country of residence of up to 100 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin. +*PersonalApi* | [**diaspora**](docs/PersonalApi.md#diaspora) | **GET** /api2/json/diaspora/{countryIso2}/{firstName}/{lastName} | [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) +*PersonalApi* | [**diasporaBatch**](docs/PersonalApi.md#diasporaBatch) | **POST** /api2/json/diasporaBatch | [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of up to 100 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) +*PersonalApi* | [**gender**](docs/PersonalApi.md#gender) | **GET** /api2/json/gender/{firstName}/{lastName} | Infer the likely gender of a name. +*PersonalApi* | [**genderBatch**](docs/PersonalApi.md#genderBatch) | **POST** /api2/json/genderBatch | Infer the likely gender of up to 100 names, detecting automatically the cultural context. +*PersonalApi* | [**genderFull**](docs/PersonalApi.md#genderFull) | **GET** /api2/json/genderFull/{fullName} | Infer the likely gender of a full name, ex. John H. Smith +*PersonalApi* | [**genderFullBatch**](docs/PersonalApi.md#genderFullBatch) | **POST** /api2/json/genderFullBatch | Infer the likely gender of up to 100 full names, detecting automatically the cultural context. +*PersonalApi* | [**genderFullGeo**](docs/PersonalApi.md#genderFullGeo) | **GET** /api2/json/genderFullGeo/{fullName}/{countryIso2} | Infer the likely gender of a full name, given a local context (ISO2 country code). +*PersonalApi* | [**genderFullGeoBatch**](docs/PersonalApi.md#genderFullGeoBatch) | **POST** /api2/json/genderFullGeoBatch | Infer the likely gender of up to 100 full names, with a given cultural context (country ISO2 code). +*PersonalApi* | [**genderGeo**](docs/PersonalApi.md#genderGeo) | **GET** /api2/json/genderGeo/{firstName}/{lastName}/{countryIso2} | Infer the likely gender of a name, given a local context (ISO2 country code). +*PersonalApi* | [**genderGeoBatch**](docs/PersonalApi.md#genderGeoBatch) | **POST** /api2/json/genderGeoBatch | Infer the likely gender of up to 100 names, each given a local context (ISO2 country code). +*PersonalApi* | [**origin**](docs/PersonalApi.md#origin) | **GET** /api2/json/origin/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead. +*PersonalApi* | [**originBatch**](docs/PersonalApi.md#originBatch) | **POST** /api2/json/originBatch | [USES 10 UNITS PER NAME] Infer the likely country of origin of up to 100 names, detecting automatically the cultural context. +*PersonalApi* | [**parseName**](docs/PersonalApi.md#parseName) | **GET** /api2/json/parseName/{nameFull} | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. +*PersonalApi* | [**parseNameBatch**](docs/PersonalApi.md#parseNameBatch) | **POST** /api2/json/parseNameBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. +*PersonalApi* | [**parseNameGeo**](docs/PersonalApi.md#parseNameGeo) | **GET** /api2/json/parseName/{nameFull}/{countryIso2} | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. For better accuracy, provide a geographic context. +*PersonalApi* | [**parseNameGeoBatch**](docs/PersonalApi.md#parseNameGeoBatch) | **POST** /api2/json/parseNameGeoBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. Giving a local context improves precision. +*PersonalApi* | [**subclassification**](docs/PersonalApi.md#subclassification) | **GET** /api2/json/subclassification/{countryIso2}/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). +*PersonalApi* | [**subclassificationBatch**](docs/PersonalApi.md#subclassificationBatch) | **POST** /api2/json/subclassificationBatch | [USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). +*PersonalApi* | [**usRaceEthnicity**](docs/PersonalApi.md#usRaceEthnicity) | **GET** /api2/json/usRaceEthnicity/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). +*PersonalApi* | [**usRaceEthnicityBatch**](docs/PersonalApi.md#usRaceEthnicityBatch) | **POST** /api2/json/usRaceEthnicityBatch | [USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). +*PersonalApi* | [**usRaceEthnicityZIP5**](docs/PersonalApi.md#usRaceEthnicityZIP5) | **GET** /api2/json/usRaceEthnicityZIP5/{firstName}/{lastName}/{zip5Code} | [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). +*PersonalApi* | [**usZipRaceEthnicityBatch**](docs/PersonalApi.md#usZipRaceEthnicityBatch) | **POST** /api2/json/usZipRaceEthnicityBatch | [USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). *SocialApi* | [**phoneCode**](docs/SocialApi.md#phoneCode) | **GET** /api2/json/phoneCode/{firstName}/{lastName}/{phoneNumber} | [USES 11 UNITS PER NAME] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number. *SocialApi* | [**phoneCodeBatch**](docs/SocialApi.md#phoneCodeBatch) | **POST** /api2/json/phoneCodeBatch | [USES 11 UNITS PER NAME] Infer the likely country and phone prefix, of up to 100 personal names, detecting automatically the local context given a name and formatted / unformatted phone number. *SocialApi* | [**phoneCodeGeo**](docs/SocialApi.md#phoneCodeGeo) | **GET** /api2/json/phoneCodeGeo/{firstName}/{lastName}/{phoneNumber}/{countryIso2} | [USES 11 UNITS PER NAME] Infer the likely phone prefix, given a personal name and formatted / unformatted phone number, with a local context (ISO2 country of residence). @@ -269,6 +211,7 @@ Class | Method | HTTP request | Description - [BatchFirstLastNameGenderIn](docs/BatchFirstLastNameGenderIn.md) - [BatchFirstLastNameGenderedOut](docs/BatchFirstLastNameGenderedOut.md) - [BatchFirstLastNameGeoIn](docs/BatchFirstLastNameGeoIn.md) + - [BatchFirstLastNameGeoSubclassificationOut](docs/BatchFirstLastNameGeoSubclassificationOut.md) - [BatchFirstLastNameGeoZippedIn](docs/BatchFirstLastNameGeoZippedIn.md) - [BatchFirstLastNameIn](docs/BatchFirstLastNameIn.md) - [BatchFirstLastNameOriginedOut](docs/BatchFirstLastNameOriginedOut.md) @@ -294,6 +237,7 @@ Class | Method | HTTP request | Description - [FirstLastNameGenderIn](docs/FirstLastNameGenderIn.md) - [FirstLastNameGenderedOut](docs/FirstLastNameGenderedOut.md) - [FirstLastNameGeoIn](docs/FirstLastNameGeoIn.md) + - [FirstLastNameGeoSubclassificationOut](docs/FirstLastNameGeoSubclassificationOut.md) - [FirstLastNameGeoZippedIn](docs/FirstLastNameGeoZippedIn.md) - [FirstLastNameIn](docs/FirstLastNameIn.md) - [FirstLastNameOriginedOut](docs/FirstLastNameOriginedOut.md) diff --git a/build.gradle b/build.gradle index e34e49d1..328951d2 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'com.namsor' -version = '2.0.15' +version = '2.0.16' buildscript { repositories { diff --git a/build.sbt b/build.sbt index d79bb346..e8bdca05 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.namsor", name := "namsor-sdk2", - version := "2.0.15", + version := "2.0.16", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/docs/AdminApi.md b/docs/AdminApi.md index 6bf5d0e7..6e340597 100644 --- a/docs/AdminApi.md +++ b/docs/AdminApi.md @@ -4,7 +4,8 @@ All URIs are relative to *https://v2.namsor.com/NamSorAPIv2* Method | HTTP request | Description ------------- | ------------- | ------------- -[**anonymize**](AdminApi.md#anonymize) | **GET** /api2/json/anonymize/{source}/{anonymized} | Activate/deactivate anonymization for a source. +[**anonymize**](AdminApi.md#anonymize) | **GET** /api2/json/anonymize/{source}/{anonymized}/{token} | Activate/deactivate anonymization for a source. +[**anonymize1**](AdminApi.md#anonymize1) | **GET** /api2/json/anonymize/{source}/{anonymized} | Activate/deactivate anonymization for a source. [**apiStatus**](AdminApi.md#apiStatus) | **GET** /api2/json/apiStatus | Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices. [**apiUsage**](AdminApi.md#apiUsage) | **GET** /api2/json/apiUsage | Print current API usage. [**apiUsageHistory**](AdminApi.md#apiUsageHistory) | **GET** /api2/json/apiUsageHistory | Print historical API usage. @@ -12,13 +13,14 @@ Method | HTTP request | Description [**availableServices**](AdminApi.md#availableServices) | **GET** /api2/json/apiServices | List of classification services and usage cost in Units per classification (default is 1=ONE Unit). Some API endpoints (ex. Corridor) combine multiple classifiers. [**disable**](AdminApi.md#disable) | **GET** /api2/json/disable/{source}/{disabled} | Activate/deactivate an API Key. [**learnable**](AdminApi.md#learnable) | **GET** /api2/json/learnable/{source}/{learnable} | Activate/deactivate learning from a source. +[**learnable1**](AdminApi.md#learnable1) | **GET** /api2/json/learnable/{source}/{learnable}/{token} | Activate/deactivate learning from a source. [**softwareVersion**](AdminApi.md#softwareVersion) | **GET** /api2/json/softwareVersion | Get the current software version [**taxonomyClasses**](AdminApi.md#taxonomyClasses) | **GET** /api2/json/taxonomyClasses/{classifierName} | Print the taxonomy classes valid for the given classifier. # **anonymize** -> anonymize(source, anonymized) +> anonymize(source, anonymized, token) Activate/deactivate anonymization for a source. @@ -42,8 +44,9 @@ api_key.setApiKey("YOUR API KEY"); AdminApi apiInstance = new AdminApi(); String source = "source_example"; // String | Boolean anonymized = true; // Boolean | +String token = "token_example"; // String | try { - apiInstance.anonymize(source, anonymized); + apiInstance.anonymize(source, anonymized, token); } catch (ApiException e) { System.err.println("Exception when calling AdminApi#anonymize"); e.printStackTrace(); @@ -52,6 +55,61 @@ try { ### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **source** | **String**| | + **anonymized** | **Boolean**| | + **token** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **anonymize1** +> anonymize1(source, anonymized) + +Activate/deactivate anonymization for a source. + +### Example +```java +// Import classes: +//import com.namsor.sdk2.invoke.ApiClient; +//import com.namsor.sdk2.invoke.ApiException; +//import com.namsor.sdk2.invoke.Configuration; +//import com.namsor.sdk2.invoke.auth.*; +//import com.namsor.sdk2.api.AdminApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: api_key +ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key"); +api_key.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.setApiKeyPrefix("Token"); + +AdminApi apiInstance = new AdminApi(); +String source = "source_example"; // String | +Boolean anonymized = true; // Boolean | +try { + apiInstance.anonymize1(source, anonymized); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#anonymize1"); + e.printStackTrace(); +} +``` + +### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **source** | **String**| | @@ -418,6 +476,62 @@ null (empty response body) [api_key](../README.md#api_key) +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **learnable1** +> learnable1(source, learnable, token) + +Activate/deactivate learning from a source. + +### Example +```java +// Import classes: +//import com.namsor.sdk2.invoke.ApiClient; +//import com.namsor.sdk2.invoke.ApiException; +//import com.namsor.sdk2.invoke.Configuration; +//import com.namsor.sdk2.invoke.auth.*; +//import com.namsor.sdk2.api.AdminApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: api_key +ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key"); +api_key.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.setApiKeyPrefix("Token"); + +AdminApi apiInstance = new AdminApi(); +String source = "source_example"; // String | The API Key to set as learnable/non learnable. +Boolean learnable = true; // Boolean | +String token = "token_example"; // String | +try { + apiInstance.learnable1(source, learnable, token); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#learnable1"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **source** | **String**| The API Key to set as learnable/non learnable. | + **learnable** | **Boolean**| | + **token** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[api_key](../README.md#api_key) + ### HTTP request headers - **Content-Type**: Not defined diff --git a/docs/BatchFirstLastNameGeoSubclassificationOut.md b/docs/BatchFirstLastNameGeoSubclassificationOut.md new file mode 100644 index 00000000..0d39745f --- /dev/null +++ b/docs/BatchFirstLastNameGeoSubclassificationOut.md @@ -0,0 +1,10 @@ + +# BatchFirstLastNameGeoSubclassificationOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personalNames** | [**List<FirstLastNameGeoSubclassificationOut>**](FirstLastNameGeoSubclassificationOut.md) | Classified names at sub country level (region or state) | [optional] + + + diff --git a/docs/FirstLastNameDiasporaedOut.md b/docs/FirstLastNameDiasporaedOut.md index aa3e54f8..344c8faa 100644 --- a/docs/FirstLastNameDiasporaedOut.md +++ b/docs/FirstLastNameDiasporaedOut.md @@ -14,6 +14,8 @@ Name | Type | Description | Notes **lifted** | **Boolean** | Indicates if the output ethnicity is based on machine learning only, or further lifted as a known fact by a country-specific rule. Let us know if you believe ethnicity is incorrect on a specific case where lifted is true. | [optional] **countryIso2** | **String** | From input data, the countryIso2 of geographic context (US,CA etc.) | [optional] **ethnicitiesTop** | **List<String>** | List most likely ethnicities (top 10) | [optional] +**probabilityCalibrated** | **Double** | The calibrated probability for ethnicity to have been guessed correctly. -1 = still calibrating. | [optional] +**probabilityAltCalibrated** | **Double** | The calibrated probability for ethnicity OR ethnicityAlt to have been guessed correctly. -1 = still calibrating. | [optional] diff --git a/docs/FirstLastNameGenderedOut.md b/docs/FirstLastNameGenderedOut.md index 9da42c9a..9bf40f57 100644 --- a/docs/FirstLastNameGenderedOut.md +++ b/docs/FirstLastNameGenderedOut.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes **firstName** | **String** | The first name (also known as given name) | [optional] **lastName** | **String** | The last name (also known as family name, or surname) | [optional] **likelyGender** | [**LikelyGenderEnum**](#LikelyGenderEnum) | Most likely gender | [optional] -**genderScale** | **Double** | Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value | [optional] +**genderScale** | **Double** | Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value. | [optional] **score** | **Double** | Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] -**probabilityCalibrated** | **Double** | The calibrated probability for inferred gender to have been guessed correctly. | [optional] +**probabilityCalibrated** | **Double** | The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating. | [optional] diff --git a/docs/FirstLastNameGeoSubclassificationOut.md b/docs/FirstLastNameGeoSubclassificationOut.md new file mode 100644 index 00000000..329be416 --- /dev/null +++ b/docs/FirstLastNameGeoSubclassificationOut.md @@ -0,0 +1,20 @@ + +# FirstLastNameGeoSubclassificationOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**script** | **String** | | [optional] +**id** | **String** | | [optional] +**firstName** | **String** | The first name (also known as given name) | [optional] +**lastName** | **String** | The last name (also known as family name, or surname) | [optional] +**countryIso2** | **String** | The input country ISO2 code | [optional] +**subClassification** | **String** | Most likely subclassification ISO_3166-2 code | [optional] +**subClassificationAlt** | **String** | Second best alternative : subclassification ISO_3166-2 code | [optional] +**subclassificationTop** | **List<String>** | List subclassification ISO_3166-2 codes (top 10) | [optional] +**score** | **Double** | Compatibility to NamSor_v1 Origin score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] +**probabilityCalibrated** | **Double** | The calibrated probability for subclassification to have been guessed correctly. -1 = still calibrating. | [optional] +**probabilityAltCalibrated** | **Double** | The calibrated probability for subclassification OR subclassificationAlt to have been guessed correctly. -1 = still calibrating. | [optional] + + + diff --git a/docs/FirstLastNameOriginedOut.md b/docs/FirstLastNameOriginedOut.md index e6ceb632..0d928778 100644 --- a/docs/FirstLastNameOriginedOut.md +++ b/docs/FirstLastNameOriginedOut.md @@ -15,8 +15,8 @@ Name | Type | Description | Notes **regionOrigin** | **String** | Most likely region of Origin (based on countryOrigin ISO2 code) | [optional] **topRegionOrigin** | **String** | Most likely top region of Origin (based on countryOrigin ISO2 code) | [optional] **subRegionOrigin** | **String** | Most likely sub region of Origin (based on countryOrigin ISO2 code) | [optional] -**probabilityCalibrated** | **Double** | The calibrated probability for countryOrigin to have been guessed correctly. | [optional] -**probabilityAltCalibrated** | **Double** | The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. | [optional] +**probabilityCalibrated** | **Double** | The calibrated probability for countryOrigin to have been guessed correctly. -1 = still calibrating. | [optional] +**probabilityAltCalibrated** | **Double** | The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. -1 = still calibrating. | [optional] diff --git a/docs/FirstLastNamePhoneNumberGeoIn.md b/docs/FirstLastNamePhoneNumberGeoIn.md index c6c47559..4f2a09c6 100644 --- a/docs/FirstLastNamePhoneNumberGeoIn.md +++ b/docs/FirstLastNamePhoneNumberGeoIn.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **firstName** | **String** | | [optional] **lastName** | **String** | | [optional] **phoneNumber** | **String** | | [optional] -**firstLastNameOriginedOut** | [**FirstLastNameOriginedOut**](FirstLastNameOriginedOut.md) | | [optional] **countryIso2** | **String** | | [optional] **countryIso2Alt** | **String** | | [optional] diff --git a/docs/FirstLastNamePhoneNumberIn.md b/docs/FirstLastNamePhoneNumberIn.md index 4a411449..05d3a1ea 100644 --- a/docs/FirstLastNamePhoneNumberIn.md +++ b/docs/FirstLastNamePhoneNumberIn.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **firstName** | **String** | | [optional] **lastName** | **String** | | [optional] **phoneNumber** | **String** | | [optional] -**firstLastNameOriginedOut** | [**FirstLastNameOriginedOut**](FirstLastNameOriginedOut.md) | | [optional] diff --git a/docs/FirstLastNameUSRaceEthnicityOut.md b/docs/FirstLastNameUSRaceEthnicityOut.md index 4883aecd..b3283ada 100644 --- a/docs/FirstLastNameUSRaceEthnicityOut.md +++ b/docs/FirstLastNameUSRaceEthnicityOut.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **raceEthnicity** | [**RaceEthnicityEnum**](#RaceEthnicityEnum) | Most likely US 'race'/ethnicity | [optional] **score** | **Double** | Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] **raceEthnicitiesTop** | **List<String>** | List 'race'/ethnicities | [optional] -**probabilityCalibrated** | **Double** | The calibrated probability for raceEthnicity to have been guessed correctly. | [optional] -**probabilityAltCalibrated** | **Double** | The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly. | [optional] +**probabilityCalibrated** | **Double** | The calibrated probability for raceEthnicity to have been guessed correctly. -1 = still calibrating. | [optional] +**probabilityAltCalibrated** | **Double** | The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly. -1 = still calibrating. | [optional] diff --git a/docs/JapaneseApi.md b/docs/JapaneseApi.md index 6f0bec50..e1d51399 100644 --- a/docs/JapaneseApi.md +++ b/docs/JapaneseApi.md @@ -9,8 +9,8 @@ Method | HTTP request | Description [**genderJapaneseNamePinyin**](JapaneseApi.md#genderJapaneseNamePinyin) | **GET** /api2/json/genderJapaneseName/{japaneseSurname}/{japaneseGivenName} | Infer the likely gender of a Japanese name in LATIN (Pinyin). [**genderJapaneseNamePinyinBatch**](JapaneseApi.md#genderJapaneseNamePinyinBatch) | **POST** /api2/json/genderJapaneseNameBatch | Infer the likely gender of up to 100 Japanese names in LATIN (Pinyin). [**japaneseNameGenderKanjiCandidatesBatch**](JapaneseApi.md#japaneseNameGenderKanjiCandidatesBatch) | **POST** /api2/json/japaneseNameGenderKanjiCandidatesBatch | Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname) with KNOWN gender, ex. Yamamoto Sanae -[**japaneseNameKanjiCandidates**](JapaneseApi.md#japaneseNameKanjiCandidates) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. -[**japaneseNameKanjiCandidates1**](JapaneseApi.md#japaneseNameKanjiCandidates1) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae +[**japaneseNameKanjiCandidates**](JapaneseApi.md#japaneseNameKanjiCandidates) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae +[**japaneseNameKanjiCandidates1**](JapaneseApi.md#japaneseNameKanjiCandidates1) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. [**japaneseNameKanjiCandidatesBatch**](JapaneseApi.md#japaneseNameKanjiCandidatesBatch) | **POST** /api2/json/japaneseNameKanjiCandidatesBatch | Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname), ex. Yamamoto Sanae [**japaneseNameLatinCandidates**](JapaneseApi.md#japaneseNameLatinCandidates) | **GET** /api2/json/japaneseNameLatinCandidates/{japaneseSurnameKanji}/{japaneseGivenNameKanji} | Romanize japanese name, based on the name in Kanji. [**japaneseNameLatinCandidatesBatch**](JapaneseApi.md#japaneseNameLatinCandidatesBatch) | **POST** /api2/json/japaneseNameLatinCandidatesBatch | Romanize japanese names, based on the name in KANJI @@ -290,9 +290,9 @@ Name | Type | Description | Notes # **japaneseNameKanjiCandidates** -> NameMatchCandidatesOut japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender) +> NameMatchCandidatesOut japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin) -Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. +Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae ### Example ```java @@ -314,9 +314,8 @@ api_key.setApiKey("YOUR API KEY"); JapaneseApi apiInstance = new JapaneseApi(); String japaneseSurnameLatin = "japaneseSurnameLatin_example"; // String | String japaneseGivenNameLatin = "japaneseGivenNameLatin_example"; // String | -String knownGender = "knownGender_example"; // String | try { - NameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender); + NameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling JapaneseApi#japaneseNameKanjiCandidates"); @@ -330,7 +329,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **japaneseSurnameLatin** | **String**| | **japaneseGivenNameLatin** | **String**| | - **knownGender** | **String**| | ### Return type @@ -347,9 +345,9 @@ Name | Type | Description | Notes # **japaneseNameKanjiCandidates1** -> NameMatchCandidatesOut japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin) +> NameMatchCandidatesOut japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender) -Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae +Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. ### Example ```java @@ -371,8 +369,9 @@ api_key.setApiKey("YOUR API KEY"); JapaneseApi apiInstance = new JapaneseApi(); String japaneseSurnameLatin = "japaneseSurnameLatin_example"; // String | String japaneseGivenNameLatin = "japaneseGivenNameLatin_example"; // String | +String knownGender = "knownGender_example"; // String | try { - NameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin); + NameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling JapaneseApi#japaneseNameKanjiCandidates1"); @@ -386,6 +385,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **japaneseSurnameLatin** | **String**| | **japaneseGivenNameLatin** | **String**| | + **knownGender** | **String**| | ### Return type diff --git a/docs/NameMatchedOut.md b/docs/NameMatchedOut.md index 327637ac..3a530d3d 100644 --- a/docs/NameMatchedOut.md +++ b/docs/NameMatchedOut.md @@ -6,8 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**matchStatus** | **String** | The name matching status. | [optional] +**matchStatus** | [**MatchStatusEnum**](#MatchStatusEnum) | The name matching status. | [optional] **score** | **Double** | | [optional] + +## Enum: MatchStatusEnum +Name | Value +---- | ----- +MATCH | "Match" +MISMATCH | "Mismatch" + + diff --git a/docs/PersonalApi.md b/docs/PersonalApi.md index efc4c9bc..e02decb6 100644 --- a/docs/PersonalApi.md +++ b/docs/PersonalApi.md @@ -24,6 +24,8 @@ Method | HTTP request | Description [**parseNameBatch**](PersonalApi.md#parseNameBatch) | **POST** /api2/json/parseNameBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. [**parseNameGeo**](PersonalApi.md#parseNameGeo) | **GET** /api2/json/parseName/{nameFull}/{countryIso2} | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. For better accuracy, provide a geographic context. [**parseNameGeoBatch**](PersonalApi.md#parseNameGeoBatch) | **POST** /api2/json/parseNameGeoBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. Giving a local context improves precision. +[**subclassification**](PersonalApi.md#subclassification) | **GET** /api2/json/subclassification/{countryIso2}/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). +[**subclassificationBatch**](PersonalApi.md#subclassificationBatch) | **POST** /api2/json/subclassificationBatch | [USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). [**usRaceEthnicity**](PersonalApi.md#usRaceEthnicity) | **GET** /api2/json/usRaceEthnicity/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). [**usRaceEthnicityBatch**](PersonalApi.md#usRaceEthnicityBatch) | **POST** /api2/json/usRaceEthnicityBatch | [USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). [**usRaceEthnicityZIP5**](PersonalApi.md#usRaceEthnicityZIP5) | **GET** /api2/json/usRaceEthnicityZIP5/{firstName}/{lastName}/{zip5Code} | [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). @@ -1111,6 +1113,116 @@ Name | Type | Description | Notes [api_key](../README.md#api_key) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **subclassification** +> FirstLastNameGeoSubclassificationOut subclassification(countryIso2, firstName, lastName) + +[USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). + +### Example +```java +// Import classes: +//import com.namsor.sdk2.invoke.ApiClient; +//import com.namsor.sdk2.invoke.ApiException; +//import com.namsor.sdk2.invoke.Configuration; +//import com.namsor.sdk2.invoke.auth.*; +//import com.namsor.sdk2.api.PersonalApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: api_key +ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key"); +api_key.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.setApiKeyPrefix("Token"); + +PersonalApi apiInstance = new PersonalApi(); +String countryIso2 = "countryIso2_example"; // String | +String firstName = "firstName_example"; // String | +String lastName = "lastName_example"; // String | +try { + FirstLastNameGeoSubclassificationOut result = apiInstance.subclassification(countryIso2, firstName, lastName); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PersonalApi#subclassification"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **countryIso2** | **String**| | + **firstName** | **String**| | + **lastName** | **String**| | + +### Return type + +[**FirstLastNameGeoSubclassificationOut**](FirstLastNameGeoSubclassificationOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **subclassificationBatch** +> BatchFirstLastNameGeoSubclassificationOut subclassificationBatch(batchFirstLastNameGeoIn) + +[USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). + +### Example +```java +// Import classes: +//import com.namsor.sdk2.invoke.ApiClient; +//import com.namsor.sdk2.invoke.ApiException; +//import com.namsor.sdk2.invoke.Configuration; +//import com.namsor.sdk2.invoke.auth.*; +//import com.namsor.sdk2.api.PersonalApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: api_key +ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key"); +api_key.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.setApiKeyPrefix("Token"); + +PersonalApi apiInstance = new PersonalApi(); +BatchFirstLastNameGeoIn batchFirstLastNameGeoIn = new BatchFirstLastNameGeoIn(); // BatchFirstLastNameGeoIn | A list of personal names +try { + BatchFirstLastNameGeoSubclassificationOut result = apiInstance.subclassificationBatch(batchFirstLastNameGeoIn); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PersonalApi#subclassificationBatch"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batchFirstLastNameGeoIn** | [**BatchFirstLastNameGeoIn**](BatchFirstLastNameGeoIn.md)| A list of personal names | [optional] + +### Return type + +[**BatchFirstLastNameGeoSubclassificationOut**](BatchFirstLastNameGeoSubclassificationOut.md) + +### Authorization + +[api_key](../README.md#api_key) + ### HTTP request headers - **Content-Type**: application/json diff --git a/docs/PersonalNameGenderedOut.md b/docs/PersonalNameGenderedOut.md index d8ad1399..fca264ea 100644 --- a/docs/PersonalNameGenderedOut.md +++ b/docs/PersonalNameGenderedOut.md @@ -8,9 +8,9 @@ Name | Type | Description | Notes **id** | **String** | | [optional] **name** | **String** | The input name | [optional] **likelyGender** | [**LikelyGenderEnum**](#LikelyGenderEnum) | Most likely gender | [optional] -**genderScale** | **Double** | Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value | [optional] +**genderScale** | **Double** | Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value. | [optional] **score** | **Double** | Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] -**probabilityCalibrated** | **Double** | The calibrated probability for inferred gender to have been guessed correctly. | [optional] +**probabilityCalibrated** | **Double** | The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating. | [optional] diff --git a/docs/PersonalNameGeoOut.md b/docs/PersonalNameGeoOut.md index aae7153d..9108a6bc 100644 --- a/docs/PersonalNameGeoOut.md +++ b/docs/PersonalNameGeoOut.md @@ -14,8 +14,8 @@ Name | Type | Description | Notes **topRegion** | **String** | Most likely top region (based on country ISO2 code) | [optional] **subRegion** | **String** | Most likely sub region (based on country ISO2 code) | [optional] **countriesTop** | **List<String>** | List countries (top 10) | [optional] -**probabilityCalibrated** | **Double** | The calibrated probability for country to have been guessed correctly. | [optional] -**probabilityAltCalibrated** | **Double** | The calibrated probability for country OR countryAlt to have been guessed correctly. | [optional] +**probabilityCalibrated** | **Double** | The calibrated probability for country to have been guessed correctly. -1 = still calibrating. | [optional] +**probabilityAltCalibrated** | **Double** | The calibrated probability for country OR countryAlt to have been guessed correctly. -1 = still calibrating. | [optional] diff --git a/docs/PersonalNameParsedOut.md b/docs/PersonalNameParsedOut.md index ef09d4e2..bc0f060d 100644 --- a/docs/PersonalNameParsedOut.md +++ b/docs/PersonalNameParsedOut.md @@ -7,10 +7,58 @@ Name | Type | Description | Notes **script** | **String** | | [optional] **id** | **String** | | [optional] **name** | **String** | The input name | [optional] -**nameParserType** | **String** | Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order. | [optional] -**nameParserTypeAlt** | **String** | Second best alternative parsing. Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order. | [optional] +**nameParserType** | [**NameParserTypeEnum**](#NameParserTypeEnum) | Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order. | [optional] +**nameParserTypeAlt** | [**NameParserTypeAltEnum**](#NameParserTypeAltEnum) | Second best alternative parsing. Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order. | [optional] **firstLastName** | [**FirstLastNameOut**](FirstLastNameOut.md) | | [optional] **score** | **Double** | Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] + +## Enum: NameParserTypeEnum +Name | Value +---- | ----- +FN1LN1 | "FN1LN1" +LN1FN1 | "LN1FN1" +FN1LN2 | "FN1LN2" +LN2FN1 | "LN2FN1" +FN1LNX | "FN1LNx" +LNXFN1 | "LNxFN1" +FN2LN1 | "FN2LN1" +LN1FN2 | "LN1FN2" +FN2LN2 | "FN2LN2" +LN2FN2 | "LN2FN2" +FN2LNX | "FN2LNx" +LNXFN2 | "LNxFN2" +FNXLN1 | "FNxLN1" +LN1FNX | "LN1FNx" +FNXLN2 | "FNxLN2" +LN2FNX | "LN2FNx" +FNXLNX | "FNxLNx" +LNXFNX | "LNxFNx" + + + +## Enum: NameParserTypeAltEnum +Name | Value +---- | ----- +FN1LN1 | "FN1LN1" +LN1FN1 | "LN1FN1" +FN1LN2 | "FN1LN2" +LN2FN1 | "LN2FN1" +FN1LNX | "FN1LNx" +LNXFN1 | "LNxFN1" +FN2LN1 | "FN2LN1" +LN1FN2 | "LN1FN2" +FN2LN2 | "FN2LN2" +LN2FN2 | "LN2FN2" +FN2LNX | "FN2LNx" +LNXFN2 | "LNxFN2" +FNXLN1 | "FNxLN1" +LN1FNX | "LN1FNx" +FNXLN2 | "FNxLN2" +LN2FNX | "LN2FNx" +FNXLNX | "FNxLNx" +LNXFNX | "LNxFNx" + + diff --git a/pom.xml b/pom.xml index 6d5af345..25e71066 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ namsor-sdk2 jar namsor-sdk2 - 2.0.15 + 2.0.16 https://github.com/openapitools/openapi-generator OpenAPI Java diff --git a/run-java.bash b/run-java.bash index 090b17d1..f69bca3f 100755 --- a/run-java.bash +++ b/run-java.bash @@ -2,7 +2,7 @@ echo update openapi-generator ./bin/utils/openapi-generator-cli.sh rm -Rf ./namsor/client/java/ echo run openapi-generator -java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate --git-repo-id namsor-java-sdk2 --git-user-id namsor --artifact-version 2.0.15 --group-id com.namsor --artifact-id namsor-sdk2 --invoker-package com.namsor.sdk2.invoke --model-package com.namsor.sdk2.model --api-package com.namsor.sdk2.api -i https://v2.namsor.com/NamSorAPIv2/api2/openapi.json -g java -o namsor/client/java +java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate --git-repo-id namsor-java-sdk2 --git-user-id namsor --artifact-version 2.0.16 --group-id com.namsor --artifact-id namsor-sdk2 --invoker-package com.namsor.sdk2.invoke --model-package com.namsor.sdk2.model --api-package com.namsor.sdk2.api -i https://v2.namsor.com/NamSorAPIv2/api2/openapi.json -g java -o namsor/client/java cd ./namsor/client/java/ mvn clean package cd target diff --git a/src/main/java/com/namsor/sdk2/api/AdminApi.java b/src/main/java/com/namsor/sdk2/api/AdminApi.java index 88613b26..6ecda491 100644 --- a/src/main/java/com/namsor/sdk2/api/AdminApi.java +++ b/src/main/java/com/namsor/sdk2/api/AdminApi.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -64,18 +64,20 @@ public void setApiClient(ApiClient apiClient) { * Build call for anonymize * @param source (required) * @param anonymized (required) + * @param token (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call anonymizeCall(String source, Boolean anonymized, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call anonymizeCall(String source, Boolean anonymized, String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = new Object(); // create path and map variables - String localVarPath = "/api2/json/anonymize/{source}/{anonymized}" + String localVarPath = "/api2/json/anonymize/{source}/{anonymized}/{token}" .replaceAll("\\{" + "source" + "\\}", apiClient.escapeString(source.toString())) - .replaceAll("\\{" + "anonymized" + "\\}", apiClient.escapeString(anonymized.toString())); + .replaceAll("\\{" + "anonymized" + "\\}", apiClient.escapeString(anonymized.toString())) + .replaceAll("\\{" + "token" + "\\}", apiClient.escapeString(token.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -112,7 +114,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call anonymizeValidateBeforeCall(String source, Boolean anonymized, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call anonymizeValidateBeforeCall(String source, Boolean anonymized, String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'source' is set if (source == null) { @@ -124,8 +126,144 @@ private com.squareup.okhttp.Call anonymizeValidateBeforeCall(String source, Bool throw new ApiException("Missing the required parameter 'anonymized' when calling anonymize(Async)"); } + // verify the required parameter 'token' is set + if (token == null) { + throw new ApiException("Missing the required parameter 'token' when calling anonymize(Async)"); + } + + + com.squareup.okhttp.Call call = anonymizeCall(source, anonymized, token, progressListener, progressRequestListener); + return call; + + } + + /** + * Activate/deactivate anonymization for a source. + * + * @param source (required) + * @param anonymized (required) + * @param token (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void anonymize(String source, Boolean anonymized, String token) throws ApiException { + anonymizeWithHttpInfo(source, anonymized, token); + } + + /** + * Activate/deactivate anonymization for a source. + * + * @param source (required) + * @param anonymized (required) + * @param token (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse anonymizeWithHttpInfo(String source, Boolean anonymized, String token) throws ApiException { + com.squareup.okhttp.Call call = anonymizeValidateBeforeCall(source, anonymized, token, null, null); + return apiClient.execute(call); + } + + /** + * Activate/deactivate anonymization for a source. (asynchronously) + * + * @param source (required) + * @param anonymized (required) + * @param token (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call anonymizeAsync(String source, Boolean anonymized, String token, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = anonymizeValidateBeforeCall(source, anonymized, token, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } + /** + * Build call for anonymize1 + * @param source (required) + * @param anonymized (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call anonymize1Call(String source, Boolean anonymized, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = new Object(); + + // create path and map variables + String localVarPath = "/api2/json/anonymize/{source}/{anonymized}" + .replaceAll("\\{" + "source" + "\\}", apiClient.escapeString(source.toString())) + .replaceAll("\\{" + "anonymized" + "\\}", apiClient.escapeString(anonymized.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if (progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "api_key" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call anonymize1ValidateBeforeCall(String source, Boolean anonymized, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'source' is set + if (source == null) { + throw new ApiException("Missing the required parameter 'source' when calling anonymize1(Async)"); + } + + // verify the required parameter 'anonymized' is set + if (anonymized == null) { + throw new ApiException("Missing the required parameter 'anonymized' when calling anonymize1(Async)"); + } + - com.squareup.okhttp.Call call = anonymizeCall(source, anonymized, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = anonymize1Call(source, anonymized, progressListener, progressRequestListener); return call; } @@ -137,8 +275,8 @@ private com.squareup.okhttp.Call anonymizeValidateBeforeCall(String source, Bool * @param anonymized (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void anonymize(String source, Boolean anonymized) throws ApiException { - anonymizeWithHttpInfo(source, anonymized); + public void anonymize1(String source, Boolean anonymized) throws ApiException { + anonymize1WithHttpInfo(source, anonymized); } /** @@ -149,8 +287,8 @@ public void anonymize(String source, Boolean anonymized) throws ApiException { * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse anonymizeWithHttpInfo(String source, Boolean anonymized) throws ApiException { - com.squareup.okhttp.Call call = anonymizeValidateBeforeCall(source, anonymized, null, null); + public ApiResponse anonymize1WithHttpInfo(String source, Boolean anonymized) throws ApiException { + com.squareup.okhttp.Call call = anonymize1ValidateBeforeCall(source, anonymized, null, null); return apiClient.execute(call); } @@ -163,7 +301,7 @@ public ApiResponse anonymizeWithHttpInfo(String source, Boolean anonymized * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call anonymizeAsync(String source, Boolean anonymized, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call anonymize1Async(String source, Boolean anonymized, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -184,7 +322,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = anonymizeValidateBeforeCall(source, anonymized, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = anonymize1ValidateBeforeCall(source, anonymized, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } @@ -1004,6 +1142,144 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, callback); return call; } + /** + * Build call for learnable1 + * @param source The API Key to set as learnable/non learnable. (required) + * @param learnable (required) + * @param token (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call learnable1Call(String source, Boolean learnable, String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = new Object(); + + // create path and map variables + String localVarPath = "/api2/json/learnable/{source}/{learnable}/{token}" + .replaceAll("\\{" + "source" + "\\}", apiClient.escapeString(source.toString())) + .replaceAll("\\{" + "learnable" + "\\}", apiClient.escapeString(learnable.toString())) + .replaceAll("\\{" + "token" + "\\}", apiClient.escapeString(token.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if (progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "api_key" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call learnable1ValidateBeforeCall(String source, Boolean learnable, String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'source' is set + if (source == null) { + throw new ApiException("Missing the required parameter 'source' when calling learnable1(Async)"); + } + + // verify the required parameter 'learnable' is set + if (learnable == null) { + throw new ApiException("Missing the required parameter 'learnable' when calling learnable1(Async)"); + } + + // verify the required parameter 'token' is set + if (token == null) { + throw new ApiException("Missing the required parameter 'token' when calling learnable1(Async)"); + } + + + com.squareup.okhttp.Call call = learnable1Call(source, learnable, token, progressListener, progressRequestListener); + return call; + + } + + /** + * Activate/deactivate learning from a source. + * + * @param source The API Key to set as learnable/non learnable. (required) + * @param learnable (required) + * @param token (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void learnable1(String source, Boolean learnable, String token) throws ApiException { + learnable1WithHttpInfo(source, learnable, token); + } + + /** + * Activate/deactivate learning from a source. + * + * @param source The API Key to set as learnable/non learnable. (required) + * @param learnable (required) + * @param token (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse learnable1WithHttpInfo(String source, Boolean learnable, String token) throws ApiException { + com.squareup.okhttp.Call call = learnable1ValidateBeforeCall(source, learnable, token, null, null); + return apiClient.execute(call); + } + + /** + * Activate/deactivate learning from a source. (asynchronously) + * + * @param source The API Key to set as learnable/non learnable. (required) + * @param learnable (required) + * @param token (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call learnable1Async(String source, Boolean learnable, String token, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = learnable1ValidateBeforeCall(source, learnable, token, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } /** * Build call for softwareVersion * @param progressListener Progress listener diff --git a/src/main/java/com/namsor/sdk2/api/ChineseApi.java b/src/main/java/com/namsor/sdk2/api/ChineseApi.java index c89ec355..4847d7e6 100644 --- a/src/main/java/com/namsor/sdk2/api/ChineseApi.java +++ b/src/main/java/com/namsor/sdk2/api/ChineseApi.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/namsor/sdk2/api/GeneralApi.java b/src/main/java/com/namsor/sdk2/api/GeneralApi.java index e8411559..092c2888 100644 --- a/src/main/java/com/namsor/sdk2/api/GeneralApi.java +++ b/src/main/java/com/namsor/sdk2/api/GeneralApi.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/namsor/sdk2/api/JapaneseApi.java b/src/main/java/com/namsor/sdk2/api/JapaneseApi.java index c50046ef..633571bc 100644 --- a/src/main/java/com/namsor/sdk2/api/JapaneseApi.java +++ b/src/main/java/com/namsor/sdk2/api/JapaneseApi.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -674,20 +674,18 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * Build call for japaneseNameKanjiCandidates * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) - * @param knownGender (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call japaneseNameKanjiCandidatesCall(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call japaneseNameKanjiCandidatesCall(String japaneseSurnameLatin, String japaneseGivenNameLatin, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = new Object(); // create path and map variables - String localVarPath = "/api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender}" + String localVarPath = "/api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}" .replaceAll("\\{" + "japaneseSurnameLatin" + "\\}", apiClient.escapeString(japaneseSurnameLatin.toString())) - .replaceAll("\\{" + "japaneseGivenNameLatin" + "\\}", apiClient.escapeString(japaneseGivenNameLatin.toString())) - .replaceAll("\\{" + "knownGender" + "\\}", apiClient.escapeString(knownGender.toString())); + .replaceAll("\\{" + "japaneseGivenNameLatin" + "\\}", apiClient.escapeString(japaneseGivenNameLatin.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -724,7 +722,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call japaneseNameKanjiCandidatesValidateBeforeCall(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call japaneseNameKanjiCandidatesValidateBeforeCall(String japaneseSurnameLatin, String japaneseGivenNameLatin, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'japaneseSurnameLatin' is set if (japaneseSurnameLatin == null) { @@ -736,57 +734,49 @@ private com.squareup.okhttp.Call japaneseNameKanjiCandidatesValidateBeforeCall(S throw new ApiException("Missing the required parameter 'japaneseGivenNameLatin' when calling japaneseNameKanjiCandidates(Async)"); } - // verify the required parameter 'knownGender' is set - if (knownGender == null) { - throw new ApiException("Missing the required parameter 'knownGender' when calling japaneseNameKanjiCandidates(Async)"); - } - - com.squareup.okhttp.Call call = japaneseNameKanjiCandidatesCall(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = japaneseNameKanjiCandidatesCall(japaneseSurnameLatin, japaneseGivenNameLatin, progressListener, progressRequestListener); return call; } /** - * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. + * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae * * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) - * @param knownGender (required) * @return NameMatchCandidatesOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public NameMatchCandidatesOut japaneseNameKanjiCandidates(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender) throws ApiException { - ApiResponse resp = japaneseNameKanjiCandidatesWithHttpInfo(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender); + public NameMatchCandidatesOut japaneseNameKanjiCandidates(String japaneseSurnameLatin, String japaneseGivenNameLatin) throws ApiException { + ApiResponse resp = japaneseNameKanjiCandidatesWithHttpInfo(japaneseSurnameLatin, japaneseGivenNameLatin); return resp.getData(); } /** - * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. + * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae * * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) - * @param knownGender (required) * @return ApiResponse<NameMatchCandidatesOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse japaneseNameKanjiCandidatesWithHttpInfo(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender) throws ApiException { - com.squareup.okhttp.Call call = japaneseNameKanjiCandidatesValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender, null, null); + public ApiResponse japaneseNameKanjiCandidatesWithHttpInfo(String japaneseSurnameLatin, String japaneseGivenNameLatin) throws ApiException { + com.squareup.okhttp.Call call = japaneseNameKanjiCandidatesValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. (asynchronously) + * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae (asynchronously) * * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) - * @param knownGender (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call japaneseNameKanjiCandidatesAsync(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call japaneseNameKanjiCandidatesAsync(String japaneseSurnameLatin, String japaneseGivenNameLatin, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -807,7 +797,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = japaneseNameKanjiCandidatesValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = japaneseNameKanjiCandidatesValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -816,18 +806,20 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * Build call for japaneseNameKanjiCandidates1 * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) + * @param knownGender (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call japaneseNameKanjiCandidates1Call(String japaneseSurnameLatin, String japaneseGivenNameLatin, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call japaneseNameKanjiCandidates1Call(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = new Object(); // create path and map variables - String localVarPath = "/api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}" + String localVarPath = "/api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender}" .replaceAll("\\{" + "japaneseSurnameLatin" + "\\}", apiClient.escapeString(japaneseSurnameLatin.toString())) - .replaceAll("\\{" + "japaneseGivenNameLatin" + "\\}", apiClient.escapeString(japaneseGivenNameLatin.toString())); + .replaceAll("\\{" + "japaneseGivenNameLatin" + "\\}", apiClient.escapeString(japaneseGivenNameLatin.toString())) + .replaceAll("\\{" + "knownGender" + "\\}", apiClient.escapeString(knownGender.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -864,7 +856,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call japaneseNameKanjiCandidates1ValidateBeforeCall(String japaneseSurnameLatin, String japaneseGivenNameLatin, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call japaneseNameKanjiCandidates1ValidateBeforeCall(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'japaneseSurnameLatin' is set if (japaneseSurnameLatin == null) { @@ -876,49 +868,57 @@ private com.squareup.okhttp.Call japaneseNameKanjiCandidates1ValidateBeforeCall( throw new ApiException("Missing the required parameter 'japaneseGivenNameLatin' when calling japaneseNameKanjiCandidates1(Async)"); } + // verify the required parameter 'knownGender' is set + if (knownGender == null) { + throw new ApiException("Missing the required parameter 'knownGender' when calling japaneseNameKanjiCandidates1(Async)"); + } + - com.squareup.okhttp.Call call = japaneseNameKanjiCandidates1Call(japaneseSurnameLatin, japaneseGivenNameLatin, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = japaneseNameKanjiCandidates1Call(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender, progressListener, progressRequestListener); return call; } /** - * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae + * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. * * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) + * @param knownGender (required) * @return NameMatchCandidatesOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public NameMatchCandidatesOut japaneseNameKanjiCandidates1(String japaneseSurnameLatin, String japaneseGivenNameLatin) throws ApiException { - ApiResponse resp = japaneseNameKanjiCandidates1WithHttpInfo(japaneseSurnameLatin, japaneseGivenNameLatin); + public NameMatchCandidatesOut japaneseNameKanjiCandidates1(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender) throws ApiException { + ApiResponse resp = japaneseNameKanjiCandidates1WithHttpInfo(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender); return resp.getData(); } /** - * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae + * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. * * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) + * @param knownGender (required) * @return ApiResponse<NameMatchCandidatesOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse japaneseNameKanjiCandidates1WithHttpInfo(String japaneseSurnameLatin, String japaneseGivenNameLatin) throws ApiException { - com.squareup.okhttp.Call call = japaneseNameKanjiCandidates1ValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, null, null); + public ApiResponse japaneseNameKanjiCandidates1WithHttpInfo(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender) throws ApiException { + com.squareup.okhttp.Call call = japaneseNameKanjiCandidates1ValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae (asynchronously) + * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. (asynchronously) * * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) + * @param knownGender (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call japaneseNameKanjiCandidates1Async(String japaneseSurnameLatin, String japaneseGivenNameLatin, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call japaneseNameKanjiCandidates1Async(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -939,7 +939,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = japaneseNameKanjiCandidates1ValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = japaneseNameKanjiCandidates1ValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/src/main/java/com/namsor/sdk2/api/PersonalApi.java b/src/main/java/com/namsor/sdk2/api/PersonalApi.java index 70762357..92708250 100644 --- a/src/main/java/com/namsor/sdk2/api/PersonalApi.java +++ b/src/main/java/com/namsor/sdk2/api/PersonalApi.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,6 +32,7 @@ import com.namsor.sdk2.model.BatchFirstLastNameDiasporaedOut; import com.namsor.sdk2.model.BatchFirstLastNameGenderedOut; import com.namsor.sdk2.model.BatchFirstLastNameGeoIn; +import com.namsor.sdk2.model.BatchFirstLastNameGeoSubclassificationOut; import com.namsor.sdk2.model.BatchFirstLastNameGeoZippedIn; import com.namsor.sdk2.model.BatchFirstLastNameIn; import com.namsor.sdk2.model.BatchFirstLastNameOriginedOut; @@ -44,6 +45,7 @@ import com.namsor.sdk2.model.CorridorOut; import com.namsor.sdk2.model.FirstLastNameDiasporaedOut; import com.namsor.sdk2.model.FirstLastNameGenderedOut; +import com.namsor.sdk2.model.FirstLastNameGeoSubclassificationOut; import com.namsor.sdk2.model.FirstLastNameOriginedOut; import com.namsor.sdk2.model.FirstLastNameUSRaceEthnicityOut; import com.namsor.sdk2.model.PersonalNameGenderedOut; @@ -2585,6 +2587,264 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for subclassification + * @param countryIso2 (required) + * @param firstName (required) + * @param lastName (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call subclassificationCall(String countryIso2, String firstName, String lastName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = new Object(); + + // create path and map variables + String localVarPath = "/api2/json/subclassification/{countryIso2}/{firstName}/{lastName}" + .replaceAll("\\{" + "countryIso2" + "\\}", apiClient.escapeString(countryIso2.toString())) + .replaceAll("\\{" + "firstName" + "\\}", apiClient.escapeString(firstName.toString())) + .replaceAll("\\{" + "lastName" + "\\}", apiClient.escapeString(lastName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if (progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "api_key" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call subclassificationValidateBeforeCall(String countryIso2, String firstName, String lastName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'countryIso2' is set + if (countryIso2 == null) { + throw new ApiException("Missing the required parameter 'countryIso2' when calling subclassification(Async)"); + } + + // verify the required parameter 'firstName' is set + if (firstName == null) { + throw new ApiException("Missing the required parameter 'firstName' when calling subclassification(Async)"); + } + + // verify the required parameter 'lastName' is set + if (lastName == null) { + throw new ApiException("Missing the required parameter 'lastName' when calling subclassification(Async)"); + } + + + com.squareup.okhttp.Call call = subclassificationCall(countryIso2, firstName, lastName, progressListener, progressRequestListener); + return call; + + } + + /** + * [USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). + * + * @param countryIso2 (required) + * @param firstName (required) + * @param lastName (required) + * @return FirstLastNameGeoSubclassificationOut + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public FirstLastNameGeoSubclassificationOut subclassification(String countryIso2, String firstName, String lastName) throws ApiException { + ApiResponse resp = subclassificationWithHttpInfo(countryIso2, firstName, lastName); + return resp.getData(); + } + + /** + * [USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). + * + * @param countryIso2 (required) + * @param firstName (required) + * @param lastName (required) + * @return ApiResponse<FirstLastNameGeoSubclassificationOut> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse subclassificationWithHttpInfo(String countryIso2, String firstName, String lastName) throws ApiException { + com.squareup.okhttp.Call call = subclassificationValidateBeforeCall(countryIso2, firstName, lastName, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * [USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). (asynchronously) + * + * @param countryIso2 (required) + * @param firstName (required) + * @param lastName (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call subclassificationAsync(String countryIso2, String firstName, String lastName, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = subclassificationValidateBeforeCall(countryIso2, firstName, lastName, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for subclassificationBatch + * @param batchFirstLastNameGeoIn A list of personal names (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call subclassificationBatchCall(BatchFirstLastNameGeoIn batchFirstLastNameGeoIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = batchFirstLastNameGeoIn; + + // create path and map variables + String localVarPath = "/api2/json/subclassificationBatch"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if (progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "api_key" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call subclassificationBatchValidateBeforeCall(BatchFirstLastNameGeoIn batchFirstLastNameGeoIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = subclassificationBatchCall(batchFirstLastNameGeoIn, progressListener, progressRequestListener); + return call; + + } + + /** + * [USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). + * + * @param batchFirstLastNameGeoIn A list of personal names (optional) + * @return BatchFirstLastNameGeoSubclassificationOut + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public BatchFirstLastNameGeoSubclassificationOut subclassificationBatch(BatchFirstLastNameGeoIn batchFirstLastNameGeoIn) throws ApiException { + ApiResponse resp = subclassificationBatchWithHttpInfo(batchFirstLastNameGeoIn); + return resp.getData(); + } + + /** + * [USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). + * + * @param batchFirstLastNameGeoIn A list of personal names (optional) + * @return ApiResponse<BatchFirstLastNameGeoSubclassificationOut> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse subclassificationBatchWithHttpInfo(BatchFirstLastNameGeoIn batchFirstLastNameGeoIn) throws ApiException { + com.squareup.okhttp.Call call = subclassificationBatchValidateBeforeCall(batchFirstLastNameGeoIn, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * [USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). (asynchronously) + * + * @param batchFirstLastNameGeoIn A list of personal names (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call subclassificationBatchAsync(BatchFirstLastNameGeoIn batchFirstLastNameGeoIn, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = subclassificationBatchValidateBeforeCall(batchFirstLastNameGeoIn, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for usRaceEthnicity * @param firstName (required) diff --git a/src/main/java/com/namsor/sdk2/api/SocialApi.java b/src/main/java/com/namsor/sdk2/api/SocialApi.java index b54fd460..e5c82ab5 100644 --- a/src/main/java/com/namsor/sdk2/api/SocialApi.java +++ b/src/main/java/com/namsor/sdk2/api/SocialApi.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/namsor/sdk2/invoke/ApiCallback.java b/src/main/java/com/namsor/sdk2/invoke/ApiCallback.java index 9ef9b3b5..b38f31df 100644 --- a/src/main/java/com/namsor/sdk2/invoke/ApiCallback.java +++ b/src/main/java/com/namsor/sdk2/invoke/ApiCallback.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/namsor/sdk2/invoke/ApiClient.java b/src/main/java/com/namsor/sdk2/invoke/ApiClient.java index b3a21ab9..01c24c1c 100644 --- a/src/main/java/com/namsor/sdk2/invoke/ApiClient.java +++ b/src/main/java/com/namsor/sdk2/invoke/ApiClient.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -99,7 +99,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2.0.15/java"); + setUserAgent("OpenAPI-Generator/2.0.16/java"); authentications = new HashMap(); } diff --git a/src/main/java/com/namsor/sdk2/invoke/ApiException.java b/src/main/java/com/namsor/sdk2/invoke/ApiException.java index bece2b6e..984c5b93 100644 --- a/src/main/java/com/namsor/sdk2/invoke/ApiException.java +++ b/src/main/java/com/namsor/sdk2/invoke/ApiException.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/com/namsor/sdk2/invoke/ApiResponse.java b/src/main/java/com/namsor/sdk2/invoke/ApiResponse.java index f165f044..da6c0497 100644 --- a/src/main/java/com/namsor/sdk2/invoke/ApiResponse.java +++ b/src/main/java/com/namsor/sdk2/invoke/ApiResponse.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/namsor/sdk2/invoke/Configuration.java b/src/main/java/com/namsor/sdk2/invoke/Configuration.java index 06679d23..7c4533ce 100644 --- a/src/main/java/com/namsor/sdk2/invoke/Configuration.java +++ b/src/main/java/com/namsor/sdk2/invoke/Configuration.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package com.namsor.sdk2.invoke; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/com/namsor/sdk2/invoke/GzipRequestInterceptor.java b/src/main/java/com/namsor/sdk2/invoke/GzipRequestInterceptor.java index 06fccb9d..91700655 100644 --- a/src/main/java/com/namsor/sdk2/invoke/GzipRequestInterceptor.java +++ b/src/main/java/com/namsor/sdk2/invoke/GzipRequestInterceptor.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/namsor/sdk2/invoke/JSON.java b/src/main/java/com/namsor/sdk2/invoke/JSON.java index 09431d7f..b8cf53fd 100644 --- a/src/main/java/com/namsor/sdk2/invoke/JSON.java +++ b/src/main/java/com/namsor/sdk2/invoke/JSON.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/namsor/sdk2/invoke/Pair.java b/src/main/java/com/namsor/sdk2/invoke/Pair.java index afa37f7d..3e5caaf1 100644 --- a/src/main/java/com/namsor/sdk2/invoke/Pair.java +++ b/src/main/java/com/namsor/sdk2/invoke/Pair.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package com.namsor.sdk2.invoke; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/com/namsor/sdk2/invoke/ProgressRequestBody.java b/src/main/java/com/namsor/sdk2/invoke/ProgressRequestBody.java index 67857352..0e0250ae 100644 --- a/src/main/java/com/namsor/sdk2/invoke/ProgressRequestBody.java +++ b/src/main/java/com/namsor/sdk2/invoke/ProgressRequestBody.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/namsor/sdk2/invoke/ProgressResponseBody.java b/src/main/java/com/namsor/sdk2/invoke/ProgressResponseBody.java index c6bfb69f..0698ec8b 100644 --- a/src/main/java/com/namsor/sdk2/invoke/ProgressResponseBody.java +++ b/src/main/java/com/namsor/sdk2/invoke/ProgressResponseBody.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/namsor/sdk2/invoke/StringUtil.java b/src/main/java/com/namsor/sdk2/invoke/StringUtil.java index 02a30677..7cb330f3 100644 --- a/src/main/java/com/namsor/sdk2/invoke/StringUtil.java +++ b/src/main/java/com/namsor/sdk2/invoke/StringUtil.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package com.namsor.sdk2.invoke; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/com/namsor/sdk2/invoke/auth/ApiKeyAuth.java b/src/main/java/com/namsor/sdk2/invoke/auth/ApiKeyAuth.java index 575f809f..e763a4c4 100644 --- a/src/main/java/com/namsor/sdk2/invoke/auth/ApiKeyAuth.java +++ b/src/main/java/com/namsor/sdk2/invoke/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/namsor/sdk2/invoke/auth/Authentication.java b/src/main/java/com/namsor/sdk2/invoke/auth/Authentication.java index 4afb613f..9f132d3e 100644 --- a/src/main/java/com/namsor/sdk2/invoke/auth/Authentication.java +++ b/src/main/java/com/namsor/sdk2/invoke/auth/Authentication.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/namsor/sdk2/invoke/auth/HttpBasicAuth.java b/src/main/java/com/namsor/sdk2/invoke/auth/HttpBasicAuth.java index a53fb9b1..3133b47c 100644 --- a/src/main/java/com/namsor/sdk2/invoke/auth/HttpBasicAuth.java +++ b/src/main/java/com/namsor/sdk2/invoke/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/namsor/sdk2/invoke/auth/OAuth.java b/src/main/java/com/namsor/sdk2/invoke/auth/OAuth.java index 4934150d..027ae19e 100644 --- a/src/main/java/com/namsor/sdk2/invoke/auth/OAuth.java +++ b/src/main/java/com/namsor/sdk2/invoke/auth/OAuth.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class OAuth implements Authentication { private String accessToken; diff --git a/src/main/java/com/namsor/sdk2/invoke/auth/OAuthFlow.java b/src/main/java/com/namsor/sdk2/invoke/auth/OAuthFlow.java index c30b97c3..0f5de0b2 100644 --- a/src/main/java/com/namsor/sdk2/invoke/auth/OAuthFlow.java +++ b/src/main/java/com/namsor/sdk2/invoke/auth/OAuthFlow.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/namsor/sdk2/model/APIBillingPeriodUsageOut.java b/src/main/java/com/namsor/sdk2/model/APIBillingPeriodUsageOut.java index 416d8eca..34faf59f 100644 --- a/src/main/java/com/namsor/sdk2/model/APIBillingPeriodUsageOut.java +++ b/src/main/java/com/namsor/sdk2/model/APIBillingPeriodUsageOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * The current billing period. */ @ApiModel(description = "The current billing period.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class APIBillingPeriodUsageOut { public static final String SERIALIZED_NAME_API_KEY = "apiKey"; @SerializedName(SERIALIZED_NAME_API_KEY) diff --git a/src/main/java/com/namsor/sdk2/model/APIClassifierOut.java b/src/main/java/com/namsor/sdk2/model/APIClassifierOut.java index 61bd7596..74db4c84 100644 --- a/src/main/java/com/namsor/sdk2/model/APIClassifierOut.java +++ b/src/main/java/com/namsor/sdk2/model/APIClassifierOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * The list of classifiers and versions. */ @ApiModel(description = "The list of classifiers and versions.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class APIClassifierOut { public static final String SERIALIZED_NAME_CLASSIFIER_NAME = "classifierName"; @SerializedName(SERIALIZED_NAME_CLASSIFIER_NAME) diff --git a/src/main/java/com/namsor/sdk2/model/APIClassifierTaxonomyOut.java b/src/main/java/com/namsor/sdk2/model/APIClassifierTaxonomyOut.java index f45e3584..422c13df 100644 --- a/src/main/java/com/namsor/sdk2/model/APIClassifierTaxonomyOut.java +++ b/src/main/java/com/namsor/sdk2/model/APIClassifierTaxonomyOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,7 +29,7 @@ /** * APIClassifierTaxonomyOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class APIClassifierTaxonomyOut { public static final String SERIALIZED_NAME_CLASSIFIER_NAME = "classifierName"; @SerializedName(SERIALIZED_NAME_CLASSIFIER_NAME) diff --git a/src/main/java/com/namsor/sdk2/model/APIClassifiersStatusOut.java b/src/main/java/com/namsor/sdk2/model/APIClassifiersStatusOut.java index cb05136a..52674b7d 100644 --- a/src/main/java/com/namsor/sdk2/model/APIClassifiersStatusOut.java +++ b/src/main/java/com/namsor/sdk2/model/APIClassifiersStatusOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ /** * APIClassifiersStatusOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class APIClassifiersStatusOut { public static final String SERIALIZED_NAME_SOFTWARE_VERSION = "softwareVersion"; @SerializedName(SERIALIZED_NAME_SOFTWARE_VERSION) diff --git a/src/main/java/com/namsor/sdk2/model/APICounterV2Out.java b/src/main/java/com/namsor/sdk2/model/APICounterV2Out.java index d6833d5a..d9d25d66 100644 --- a/src/main/java/com/namsor/sdk2/model/APICounterV2Out.java +++ b/src/main/java/com/namsor/sdk2/model/APICounterV2Out.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,7 @@ * Detailed usage as reported by the deduplicating API counter. */ @ApiModel(description = "Detailed usage as reported by the deduplicating API counter.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class APICounterV2Out { public static final String SERIALIZED_NAME_API_KEY = "apiKey"; @SerializedName(SERIALIZED_NAME_API_KEY) diff --git a/src/main/java/com/namsor/sdk2/model/APIKeyOut.java b/src/main/java/com/namsor/sdk2/model/APIKeyOut.java index 778b6c12..dfd0c38d 100644 --- a/src/main/java/com/namsor/sdk2/model/APIKeyOut.java +++ b/src/main/java/com/namsor/sdk2/model/APIKeyOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,10 +25,9 @@ import java.io.IOException; /** - * The API Key. + * APIKeyOut */ -@ApiModel(description = "The API Key.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class APIKeyOut { public static final String SERIALIZED_NAME_API_KEY = "apiKey"; @SerializedName(SERIALIZED_NAME_API_KEY) diff --git a/src/main/java/com/namsor/sdk2/model/APIPeriodUsageOut.java b/src/main/java/com/namsor/sdk2/model/APIPeriodUsageOut.java index 1db62e03..4e38c3a5 100644 --- a/src/main/java/com/namsor/sdk2/model/APIPeriodUsageOut.java +++ b/src/main/java/com/namsor/sdk2/model/APIPeriodUsageOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,7 +29,7 @@ /** * APIPeriodUsageOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class APIPeriodUsageOut { public static final String SERIALIZED_NAME_SUBSCRIPTION = "subscription"; @SerializedName(SERIALIZED_NAME_SUBSCRIPTION) diff --git a/src/main/java/com/namsor/sdk2/model/APIPlanSubscriptionOut.java b/src/main/java/com/namsor/sdk2/model/APIPlanSubscriptionOut.java index ba7fcf43..13fc1ea5 100644 --- a/src/main/java/com/namsor/sdk2/model/APIPlanSubscriptionOut.java +++ b/src/main/java/com/namsor/sdk2/model/APIPlanSubscriptionOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * The API Plan governing the subscription. */ @ApiModel(description = "The API Plan governing the subscription.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class APIPlanSubscriptionOut { public static final String SERIALIZED_NAME_API_KEY = "apiKey"; @SerializedName(SERIALIZED_NAME_API_KEY) diff --git a/src/main/java/com/namsor/sdk2/model/APIServiceOut.java b/src/main/java/com/namsor/sdk2/model/APIServiceOut.java index 641e3ae7..89e288d5 100644 --- a/src/main/java/com/namsor/sdk2/model/APIServiceOut.java +++ b/src/main/java/com/namsor/sdk2/model/APIServiceOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * List of API Services */ @ApiModel(description = "List of API Services") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class APIServiceOut { public static final String SERIALIZED_NAME_SERVICE_NAME = "serviceName"; @SerializedName(SERIALIZED_NAME_SERVICE_NAME) diff --git a/src/main/java/com/namsor/sdk2/model/APIServicesOut.java b/src/main/java/com/namsor/sdk2/model/APIServicesOut.java index 9db7cac8..8d23941a 100644 --- a/src/main/java/com/namsor/sdk2/model/APIServicesOut.java +++ b/src/main/java/com/namsor/sdk2/model/APIServicesOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * APIServicesOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class APIServicesOut { public static final String SERIALIZED_NAME_API_SERVICES = "apiServices"; @SerializedName(SERIALIZED_NAME_API_SERVICES) diff --git a/src/main/java/com/namsor/sdk2/model/APIUsageAggregatedOut.java b/src/main/java/com/namsor/sdk2/model/APIUsageAggregatedOut.java index eaeaab9a..eea319f7 100644 --- a/src/main/java/com/namsor/sdk2/model/APIUsageAggregatedOut.java +++ b/src/main/java/com/namsor/sdk2/model/APIUsageAggregatedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,7 +29,7 @@ /** * APIUsageAggregatedOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class APIUsageAggregatedOut { public static final String SERIALIZED_NAME_TIME_UNIT = "timeUnit"; @SerializedName(SERIALIZED_NAME_TIME_UNIT) diff --git a/src/main/java/com/namsor/sdk2/model/APIUsageHistoryOut.java b/src/main/java/com/namsor/sdk2/model/APIUsageHistoryOut.java index 256c0572..49ed8e4e 100644 --- a/src/main/java/com/namsor/sdk2/model/APIUsageHistoryOut.java +++ b/src/main/java/com/namsor/sdk2/model/APIUsageHistoryOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * APIUsageHistoryOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class APIUsageHistoryOut { public static final String SERIALIZED_NAME_DETAILED_USAGE = "detailedUsage"; @SerializedName(SERIALIZED_NAME_DETAILED_USAGE) diff --git a/src/main/java/com/namsor/sdk2/model/BatchCorridorIn.java b/src/main/java/com/namsor/sdk2/model/BatchCorridorIn.java index ce49efee..47c28cd7 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchCorridorIn.java +++ b/src/main/java/com/namsor/sdk2/model/BatchCorridorIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchCorridorIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchCorridorIn { public static final String SERIALIZED_NAME_CORRIDOR_FROM_TO = "corridorFromTo"; @SerializedName(SERIALIZED_NAME_CORRIDOR_FROM_TO) diff --git a/src/main/java/com/namsor/sdk2/model/BatchCorridorOut.java b/src/main/java/com/namsor/sdk2/model/BatchCorridorOut.java index 479b32bd..93ced92c 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchCorridorOut.java +++ b/src/main/java/com/namsor/sdk2/model/BatchCorridorOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchCorridorOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchCorridorOut { public static final String SERIALIZED_NAME_CORRIDOR_FROM_TO = "corridorFromTo"; @SerializedName(SERIALIZED_NAME_CORRIDOR_FROM_TO) diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameDiasporaedOut.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameDiasporaedOut.java index 7ae93e00..f8ecdeda 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameDiasporaedOut.java +++ b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameDiasporaedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * Represents the output of inferring the LIKELY ethnicity from a personal name, given an country of residence. */ @ApiModel(description = "Represents the output of inferring the LIKELY ethnicity from a personal name, given an country of residence.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchFirstLastNameDiasporaedOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGenderIn.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGenderIn.java index ff28c60e..ac00279c 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGenderIn.java +++ b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGenderIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchFirstLastNameGenderIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchFirstLastNameGenderIn { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGenderedOut.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGenderedOut.java index 02f0b6d7..66b3ace3 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGenderedOut.java +++ b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGenderedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * Represents the output of inferring the LIKELY gender from a list of personal names. */ @ApiModel(description = "Represents the output of inferring the LIKELY gender from a list of personal names.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchFirstLastNameGenderedOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoIn.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoIn.java index 9015bb1d..78afd128 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoIn.java +++ b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchFirstLastNameGeoIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchFirstLastNameGeoIn { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoSubclassificationOut.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoSubclassificationOut.java new file mode 100644 index 00000000..7b935a77 --- /dev/null +++ b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoSubclassificationOut.java @@ -0,0 +1,106 @@ +/* + * NamSor API v2 + * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! + * + * OpenAPI spec version: 2.0.16 + * Contact: contact@namsor.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.namsor.sdk2.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.namsor.sdk2.model.FirstLastNameGeoSubclassificationOut; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Represents the output of inferring the LIKELY country subclassification (regional names). + */ +@ApiModel(description = "Represents the output of inferring the LIKELY country subclassification (regional names).") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") +public class BatchFirstLastNameGeoSubclassificationOut { + public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; + @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) + private List personalNames = new ArrayList(); + + public BatchFirstLastNameGeoSubclassificationOut personalNames(List personalNames) { + this.personalNames = personalNames; + return this; + } + + public BatchFirstLastNameGeoSubclassificationOut addPersonalNamesItem(FirstLastNameGeoSubclassificationOut personalNamesItem) { + if (this.personalNames == null) { + this.personalNames = new ArrayList(); + } + this.personalNames.add(personalNamesItem); + return this; + } + + /** + * Classified names at sub country level (region or state) + * @return personalNames + **/ + @ApiModelProperty(value = "Classified names at sub country level (region or state)") + public List getPersonalNames() { + return personalNames; + } + + public void setPersonalNames(List personalNames) { + this.personalNames = personalNames; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchFirstLastNameGeoSubclassificationOut batchFirstLastNameGeoSubclassificationOut = (BatchFirstLastNameGeoSubclassificationOut) o; + return Objects.equals(this.personalNames, batchFirstLastNameGeoSubclassificationOut.personalNames); + } + + @Override + public int hashCode() { + return Objects.hash(personalNames); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchFirstLastNameGeoSubclassificationOut {\n"); + sb.append(" personalNames: ").append(toIndentedString(personalNames)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoZippedIn.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoZippedIn.java index 1597c970..a5daec64 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoZippedIn.java +++ b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoZippedIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchFirstLastNameGeoZippedIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchFirstLastNameGeoZippedIn { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameIn.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameIn.java index 44946168..a7672597 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameIn.java +++ b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchFirstLastNameIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchFirstLastNameIn { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameOriginedOut.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameOriginedOut.java index e346b9bb..f321b545 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameOriginedOut.java +++ b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameOriginedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * Represents the output of inferring the LIKELY origin from a list of personal names. */ @ApiModel(description = "Represents the output of inferring the LIKELY origin from a list of personal names.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchFirstLastNameOriginedOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneCodedOut.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneCodedOut.java index d9090927..73a28335 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneCodedOut.java +++ b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneCodedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * Represents the output of inferring the LIKELY country and phone code of personal names+phones. */ @ApiModel(description = "Represents the output of inferring the LIKELY country and phone code of personal names+phones.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchFirstLastNamePhoneCodedOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES_WITH_PHONE_NUMBERS = "personalNamesWithPhoneNumbers"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES_WITH_PHONE_NUMBERS) diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberGeoIn.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberGeoIn.java index 9d2f1a4c..dc1c22df 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberGeoIn.java +++ b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberGeoIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchFirstLastNamePhoneNumberGeoIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchFirstLastNamePhoneNumberGeoIn { public static final String SERIALIZED_NAME_PERSONAL_NAMES_WITH_PHONE_NUMBERS = "personalNamesWithPhoneNumbers"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES_WITH_PHONE_NUMBERS) diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberIn.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberIn.java index 12907bba..977755a8 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberIn.java +++ b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchFirstLastNamePhoneNumberIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchFirstLastNamePhoneNumberIn { public static final String SERIALIZED_NAME_PERSONAL_NAMES_WITH_PHONE_NUMBERS = "personalNamesWithPhoneNumbers"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES_WITH_PHONE_NUMBERS) diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameUSRaceEthnicityOut.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameUSRaceEthnicityOut.java index 39317ce7..61561828 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameUSRaceEthnicityOut.java +++ b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameUSRaceEthnicityOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * Represents the output of inferring the LIKELY US 'race/ethnicity' from a personal name, given US country of residence and (optionally) a ZIP5 code. */ @ApiModel(description = "Represents the output of inferring the LIKELY US 'race/ethnicity' from a personal name, given US country of residence and (optionally) a ZIP5 code.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchFirstLastNameUSRaceEthnicityOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchMatchPersonalFirstLastNameIn.java b/src/main/java/com/namsor/sdk2/model/BatchMatchPersonalFirstLastNameIn.java index de08743f..2e0289fe 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchMatchPersonalFirstLastNameIn.java +++ b/src/main/java/com/namsor/sdk2/model/BatchMatchPersonalFirstLastNameIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchMatchPersonalFirstLastNameIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchMatchPersonalFirstLastNameIn { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchNameGeoIn.java b/src/main/java/com/namsor/sdk2/model/BatchNameGeoIn.java index 1951ff9a..ba596503 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchNameGeoIn.java +++ b/src/main/java/com/namsor/sdk2/model/BatchNameGeoIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchNameGeoIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchNameGeoIn { public static final String SERIALIZED_NAME_PROPER_NOUNS = "properNouns"; @SerializedName(SERIALIZED_NAME_PROPER_NOUNS) diff --git a/src/main/java/com/namsor/sdk2/model/BatchNameIn.java b/src/main/java/com/namsor/sdk2/model/BatchNameIn.java index 5efd97d1..f12b8c47 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchNameIn.java +++ b/src/main/java/com/namsor/sdk2/model/BatchNameIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchNameIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchNameIn { public static final String SERIALIZED_NAME_PROPER_NOUNS = "properNouns"; @SerializedName(SERIALIZED_NAME_PROPER_NOUNS) diff --git a/src/main/java/com/namsor/sdk2/model/BatchNameMatchCandidatesOut.java b/src/main/java/com/namsor/sdk2/model/BatchNameMatchCandidatesOut.java index 6f92f9b6..f89e2343 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchNameMatchCandidatesOut.java +++ b/src/main/java/com/namsor/sdk2/model/BatchNameMatchCandidatesOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchNameMatchCandidatesOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchNameMatchCandidatesOut { public static final String SERIALIZED_NAME_NAMES_AND_MATCH_CANDIDATES = "namesAndMatchCandidates"; @SerializedName(SERIALIZED_NAME_NAMES_AND_MATCH_CANDIDATES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchNameMatchedOut.java b/src/main/java/com/namsor/sdk2/model/BatchNameMatchedOut.java index 7d92464d..7109e02e 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchNameMatchedOut.java +++ b/src/main/java/com/namsor/sdk2/model/BatchNameMatchedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchNameMatchedOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchNameMatchedOut { public static final String SERIALIZED_NAME_MATCHED_NAMES = "matchedNames"; @SerializedName(SERIALIZED_NAME_MATCHED_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGenderedOut.java b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGenderedOut.java index fb238d8a..8454e180 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGenderedOut.java +++ b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGenderedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchPersonalNameGenderedOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchPersonalNameGenderedOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGeoIn.java b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGeoIn.java index 7efb92c9..e91e0837 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGeoIn.java +++ b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGeoIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchPersonalNameGeoIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchPersonalNameGeoIn { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGeoOut.java b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGeoOut.java index c3182735..0eb2b4c6 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGeoOut.java +++ b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGeoOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchPersonalNameGeoOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchPersonalNameGeoOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameIn.java b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameIn.java index bab26200..8dc93c5b 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameIn.java +++ b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchPersonalNameIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchPersonalNameIn { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameParsedOut.java b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameParsedOut.java index 33eafc07..5dbf6502 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameParsedOut.java +++ b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameParsedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * BatchPersonalNameParsedOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchPersonalNameParsedOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) diff --git a/src/main/java/com/namsor/sdk2/model/BatchProperNounCategorizedOut.java b/src/main/java/com/namsor/sdk2/model/BatchProperNounCategorizedOut.java index 06f66d5d..36d9811e 100644 --- a/src/main/java/com/namsor/sdk2/model/BatchProperNounCategorizedOut.java +++ b/src/main/java/com/namsor/sdk2/model/BatchProperNounCategorizedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * Represents the output of inferring the common type (anthroponym, toponym, brand, etc.) from a list of proper names. */ @ApiModel(description = "Represents the output of inferring the common type (anthroponym, toponym, brand, etc.) from a list of proper names.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class BatchProperNounCategorizedOut { public static final String SERIALIZED_NAME_PROPER_NOUNS = "properNouns"; @SerializedName(SERIALIZED_NAME_PROPER_NOUNS) diff --git a/src/main/java/com/namsor/sdk2/model/CorridorIn.java b/src/main/java/com/namsor/sdk2/model/CorridorIn.java index dd4a714b..7101f5ec 100644 --- a/src/main/java/com/namsor/sdk2/model/CorridorIn.java +++ b/src/main/java/com/namsor/sdk2/model/CorridorIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,7 +29,7 @@ * Represent any transnational interaction between names (ex. remittance, communication, cross-border investment, airline travel */ @ApiModel(description = "Represent any transnational interaction between names (ex. remittance, communication, cross-border investment, airline travel") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class CorridorIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/CorridorOut.java b/src/main/java/com/namsor/sdk2/model/CorridorOut.java index f280008b..a23b4b73 100644 --- a/src/main/java/com/namsor/sdk2/model/CorridorOut.java +++ b/src/main/java/com/namsor/sdk2/model/CorridorOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * Represent multiple classifications for corridor sender and receiver (gender, country, origin, diaspora) */ @ApiModel(description = "Represent multiple classifications for corridor sender and receiver (gender, country, origin, diaspora)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class CorridorOut { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/FeedbackLoopOut.java b/src/main/java/com/namsor/sdk2/model/FeedbackLoopOut.java index 49b9c3bd..13bfc2a6 100644 --- a/src/main/java/com/namsor/sdk2/model/FeedbackLoopOut.java +++ b/src/main/java/com/namsor/sdk2/model/FeedbackLoopOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * FeedbackLoopOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FeedbackLoopOut { public static final String SERIALIZED_NAME_FEEDBACK_CREDITS = "feedbackCredits"; @SerializedName(SERIALIZED_NAME_FEEDBACK_CREDITS) diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameDiasporaedOut.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameDiasporaedOut.java index 2345ba12..a23c120b 100644 --- a/src/main/java/com/namsor/sdk2/model/FirstLastNameDiasporaedOut.java +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNameDiasporaedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ * Represents the output of inferring the LIKELY ethnicity from a personal name, given an country of residence. */ @ApiModel(description = "Represents the output of inferring the LIKELY ethnicity from a personal name, given an country of residence.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FirstLastNameDiasporaedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -72,6 +72,14 @@ public class FirstLastNameDiasporaedOut { @SerializedName(SERIALIZED_NAME_ETHNICITIES_TOP) private List ethnicitiesTop = new ArrayList(); + public static final String SERIALIZED_NAME_PROBABILITY_CALIBRATED = "probabilityCalibrated"; + @SerializedName(SERIALIZED_NAME_PROBABILITY_CALIBRATED) + private Double probabilityCalibrated; + + public static final String SERIALIZED_NAME_PROBABILITY_ALT_CALIBRATED = "probabilityAltCalibrated"; + @SerializedName(SERIALIZED_NAME_PROBABILITY_ALT_CALIBRATED) + private Double probabilityAltCalibrated; + public FirstLastNameDiasporaedOut script(String script) { this.script = script; return this; @@ -262,6 +270,46 @@ public void setEthnicitiesTop(List ethnicitiesTop) { this.ethnicitiesTop = ethnicitiesTop; } + public FirstLastNameDiasporaedOut probabilityCalibrated(Double probabilityCalibrated) { + this.probabilityCalibrated = probabilityCalibrated; + return this; + } + + /** + * The calibrated probability for ethnicity to have been guessed correctly. -1 = still calibrating. + * minimum: -1 + * maximum: 1 + * @return probabilityCalibrated + **/ + @ApiModelProperty(value = "The calibrated probability for ethnicity to have been guessed correctly. -1 = still calibrating. ") + public Double getProbabilityCalibrated() { + return probabilityCalibrated; + } + + public void setProbabilityCalibrated(Double probabilityCalibrated) { + this.probabilityCalibrated = probabilityCalibrated; + } + + public FirstLastNameDiasporaedOut probabilityAltCalibrated(Double probabilityAltCalibrated) { + this.probabilityAltCalibrated = probabilityAltCalibrated; + return this; + } + + /** + * The calibrated probability for ethnicity OR ethnicityAlt to have been guessed correctly. -1 = still calibrating. + * minimum: -1 + * maximum: 1 + * @return probabilityAltCalibrated + **/ + @ApiModelProperty(value = "The calibrated probability for ethnicity OR ethnicityAlt to have been guessed correctly. -1 = still calibrating. ") + public Double getProbabilityAltCalibrated() { + return probabilityAltCalibrated; + } + + public void setProbabilityAltCalibrated(Double probabilityAltCalibrated) { + this.probabilityAltCalibrated = probabilityAltCalibrated; + } + @Override public boolean equals(java.lang.Object o) { @@ -281,12 +329,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.ethnicity, firstLastNameDiasporaedOut.ethnicity) && Objects.equals(this.lifted, firstLastNameDiasporaedOut.lifted) && Objects.equals(this.countryIso2, firstLastNameDiasporaedOut.countryIso2) && - Objects.equals(this.ethnicitiesTop, firstLastNameDiasporaedOut.ethnicitiesTop); + Objects.equals(this.ethnicitiesTop, firstLastNameDiasporaedOut.ethnicitiesTop) && + Objects.equals(this.probabilityCalibrated, firstLastNameDiasporaedOut.probabilityCalibrated) && + Objects.equals(this.probabilityAltCalibrated, firstLastNameDiasporaedOut.probabilityAltCalibrated); } @Override public int hashCode() { - return Objects.hash(script, id, firstName, lastName, score, ethnicityAlt, ethnicity, lifted, countryIso2, ethnicitiesTop); + return Objects.hash(script, id, firstName, lastName, score, ethnicityAlt, ethnicity, lifted, countryIso2, ethnicitiesTop, probabilityCalibrated, probabilityAltCalibrated); } @@ -304,6 +354,8 @@ public String toString() { sb.append(" lifted: ").append(toIndentedString(lifted)).append("\n"); sb.append(" countryIso2: ").append(toIndentedString(countryIso2)).append("\n"); sb.append(" ethnicitiesTop: ").append(toIndentedString(ethnicitiesTop)).append("\n"); + sb.append(" probabilityCalibrated: ").append(toIndentedString(probabilityCalibrated)).append("\n"); + sb.append(" probabilityAltCalibrated: ").append(toIndentedString(probabilityAltCalibrated)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameGenderIn.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameGenderIn.java index b2848c58..41700b0a 100644 --- a/src/main/java/com/namsor/sdk2/model/FirstLastNameGenderIn.java +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNameGenderIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * FirstLastNameGenderIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FirstLastNameGenderIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameGenderedOut.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameGenderedOut.java index c365a6e1..2100ef23 100644 --- a/src/main/java/com/namsor/sdk2/model/FirstLastNameGenderedOut.java +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNameGenderedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * Represents the output of inferring the LIKELY gender from a personal name. */ @ApiModel(description = "Represents the output of inferring the LIKELY gender from a personal name.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FirstLastNameGenderedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -207,10 +207,12 @@ public FirstLastNameGenderedOut genderScale(Double genderScale) { } /** - * Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value + * Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value. + * minimum: -1 + * maximum: 1 * @return genderScale **/ - @ApiModelProperty(value = "Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value") + @ApiModelProperty(value = "Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value.") public Double getGenderScale() { return genderScale; } @@ -245,10 +247,12 @@ public FirstLastNameGenderedOut probabilityCalibrated(Double probabilityCalibrat } /** - * The calibrated probability for inferred gender to have been guessed correctly. + * The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating. + * minimum: -1 + * maximum: 1 * @return probabilityCalibrated **/ - @ApiModelProperty(value = "The calibrated probability for inferred gender to have been guessed correctly.") + @ApiModelProperty(value = "The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating. ") public Double getProbabilityCalibrated() { return probabilityCalibrated; } diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoIn.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoIn.java index 4680dbc7..93f20853 100644 --- a/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoIn.java +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * FirstLastNameGeoIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FirstLastNameGeoIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoSubclassificationOut.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoSubclassificationOut.java new file mode 100644 index 00000000..54dcdf48 --- /dev/null +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoSubclassificationOut.java @@ -0,0 +1,351 @@ +/* + * NamSor API v2 + * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! + * + * OpenAPI spec version: 2.0.16 + * Contact: contact@namsor.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.namsor.sdk2.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Represents the geographic name origin at a country subclassification level (usually regional or state level). + */ +@ApiModel(description = "Represents the geographic name origin at a country subclassification level (usually regional or state level).") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") +public class FirstLastNameGeoSubclassificationOut { + public static final String SERIALIZED_NAME_SCRIPT = "script"; + @SerializedName(SERIALIZED_NAME_SCRIPT) + private String script; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; + @SerializedName(SERIALIZED_NAME_FIRST_NAME) + private String firstName; + + public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; + @SerializedName(SERIALIZED_NAME_LAST_NAME) + private String lastName; + + public static final String SERIALIZED_NAME_COUNTRY_ISO2 = "countryIso2"; + @SerializedName(SERIALIZED_NAME_COUNTRY_ISO2) + private String countryIso2; + + public static final String SERIALIZED_NAME_SUB_CLASSIFICATION = "subClassification"; + @SerializedName(SERIALIZED_NAME_SUB_CLASSIFICATION) + private String subClassification; + + public static final String SERIALIZED_NAME_SUB_CLASSIFICATION_ALT = "subClassificationAlt"; + @SerializedName(SERIALIZED_NAME_SUB_CLASSIFICATION_ALT) + private String subClassificationAlt; + + public static final String SERIALIZED_NAME_SUBCLASSIFICATION_TOP = "subclassificationTop"; + @SerializedName(SERIALIZED_NAME_SUBCLASSIFICATION_TOP) + private List subclassificationTop = new ArrayList(); + + public static final String SERIALIZED_NAME_SCORE = "score"; + @SerializedName(SERIALIZED_NAME_SCORE) + private Double score; + + public static final String SERIALIZED_NAME_PROBABILITY_CALIBRATED = "probabilityCalibrated"; + @SerializedName(SERIALIZED_NAME_PROBABILITY_CALIBRATED) + private Double probabilityCalibrated; + + public static final String SERIALIZED_NAME_PROBABILITY_ALT_CALIBRATED = "probabilityAltCalibrated"; + @SerializedName(SERIALIZED_NAME_PROBABILITY_ALT_CALIBRATED) + private Double probabilityAltCalibrated; + + public FirstLastNameGeoSubclassificationOut script(String script) { + this.script = script; + return this; + } + + /** + * Get script + * @return script + **/ + @ApiModelProperty(value = "") + public String getScript() { + return script; + } + + public void setScript(String script) { + this.script = script; + } + + public FirstLastNameGeoSubclassificationOut id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FirstLastNameGeoSubclassificationOut firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * The first name (also known as given name) + * @return firstName + **/ + @ApiModelProperty(value = "The first name (also known as given name)") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public FirstLastNameGeoSubclassificationOut lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * The last name (also known as family name, or surname) + * @return lastName + **/ + @ApiModelProperty(value = "The last name (also known as family name, or surname)") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public FirstLastNameGeoSubclassificationOut countryIso2(String countryIso2) { + this.countryIso2 = countryIso2; + return this; + } + + /** + * The input country ISO2 code + * @return countryIso2 + **/ + @ApiModelProperty(value = "The input country ISO2 code") + public String getCountryIso2() { + return countryIso2; + } + + public void setCountryIso2(String countryIso2) { + this.countryIso2 = countryIso2; + } + + public FirstLastNameGeoSubclassificationOut subClassification(String subClassification) { + this.subClassification = subClassification; + return this; + } + + /** + * Most likely subclassification ISO_3166-2 code + * @return subClassification + **/ + @ApiModelProperty(value = "Most likely subclassification ISO_3166-2 code") + public String getSubClassification() { + return subClassification; + } + + public void setSubClassification(String subClassification) { + this.subClassification = subClassification; + } + + public FirstLastNameGeoSubclassificationOut subClassificationAlt(String subClassificationAlt) { + this.subClassificationAlt = subClassificationAlt; + return this; + } + + /** + * Second best alternative : subclassification ISO_3166-2 code + * @return subClassificationAlt + **/ + @ApiModelProperty(value = "Second best alternative : subclassification ISO_3166-2 code") + public String getSubClassificationAlt() { + return subClassificationAlt; + } + + public void setSubClassificationAlt(String subClassificationAlt) { + this.subClassificationAlt = subClassificationAlt; + } + + public FirstLastNameGeoSubclassificationOut subclassificationTop(List subclassificationTop) { + this.subclassificationTop = subclassificationTop; + return this; + } + + public FirstLastNameGeoSubclassificationOut addSubclassificationTopItem(String subclassificationTopItem) { + if (this.subclassificationTop == null) { + this.subclassificationTop = new ArrayList(); + } + this.subclassificationTop.add(subclassificationTopItem); + return this; + } + + /** + * List subclassification ISO_3166-2 codes (top 10) + * @return subclassificationTop + **/ + @ApiModelProperty(value = "List subclassification ISO_3166-2 codes (top 10)") + public List getSubclassificationTop() { + return subclassificationTop; + } + + public void setSubclassificationTop(List subclassificationTop) { + this.subclassificationTop = subclassificationTop; + } + + public FirstLastNameGeoSubclassificationOut score(Double score) { + this.score = score; + return this; + } + + /** + * Compatibility to NamSor_v1 Origin score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. + * minimum: 0 + * maximum: 100 + * @return score + **/ + @ApiModelProperty(value = "Compatibility to NamSor_v1 Origin score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. ") + public Double getScore() { + return score; + } + + public void setScore(Double score) { + this.score = score; + } + + public FirstLastNameGeoSubclassificationOut probabilityCalibrated(Double probabilityCalibrated) { + this.probabilityCalibrated = probabilityCalibrated; + return this; + } + + /** + * The calibrated probability for subclassification to have been guessed correctly. -1 = still calibrating. + * minimum: -1 + * maximum: 1 + * @return probabilityCalibrated + **/ + @ApiModelProperty(value = "The calibrated probability for subclassification to have been guessed correctly. -1 = still calibrating. ") + public Double getProbabilityCalibrated() { + return probabilityCalibrated; + } + + public void setProbabilityCalibrated(Double probabilityCalibrated) { + this.probabilityCalibrated = probabilityCalibrated; + } + + public FirstLastNameGeoSubclassificationOut probabilityAltCalibrated(Double probabilityAltCalibrated) { + this.probabilityAltCalibrated = probabilityAltCalibrated; + return this; + } + + /** + * The calibrated probability for subclassification OR subclassificationAlt to have been guessed correctly. -1 = still calibrating. + * minimum: -1 + * maximum: 1 + * @return probabilityAltCalibrated + **/ + @ApiModelProperty(value = "The calibrated probability for subclassification OR subclassificationAlt to have been guessed correctly. -1 = still calibrating. ") + public Double getProbabilityAltCalibrated() { + return probabilityAltCalibrated; + } + + public void setProbabilityAltCalibrated(Double probabilityAltCalibrated) { + this.probabilityAltCalibrated = probabilityAltCalibrated; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FirstLastNameGeoSubclassificationOut firstLastNameGeoSubclassificationOut = (FirstLastNameGeoSubclassificationOut) o; + return Objects.equals(this.script, firstLastNameGeoSubclassificationOut.script) && + Objects.equals(this.id, firstLastNameGeoSubclassificationOut.id) && + Objects.equals(this.firstName, firstLastNameGeoSubclassificationOut.firstName) && + Objects.equals(this.lastName, firstLastNameGeoSubclassificationOut.lastName) && + Objects.equals(this.countryIso2, firstLastNameGeoSubclassificationOut.countryIso2) && + Objects.equals(this.subClassification, firstLastNameGeoSubclassificationOut.subClassification) && + Objects.equals(this.subClassificationAlt, firstLastNameGeoSubclassificationOut.subClassificationAlt) && + Objects.equals(this.subclassificationTop, firstLastNameGeoSubclassificationOut.subclassificationTop) && + Objects.equals(this.score, firstLastNameGeoSubclassificationOut.score) && + Objects.equals(this.probabilityCalibrated, firstLastNameGeoSubclassificationOut.probabilityCalibrated) && + Objects.equals(this.probabilityAltCalibrated, firstLastNameGeoSubclassificationOut.probabilityAltCalibrated); + } + + @Override + public int hashCode() { + return Objects.hash(script, id, firstName, lastName, countryIso2, subClassification, subClassificationAlt, subclassificationTop, score, probabilityCalibrated, probabilityAltCalibrated); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FirstLastNameGeoSubclassificationOut {\n"); + sb.append(" script: ").append(toIndentedString(script)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" countryIso2: ").append(toIndentedString(countryIso2)).append("\n"); + sb.append(" subClassification: ").append(toIndentedString(subClassification)).append("\n"); + sb.append(" subClassificationAlt: ").append(toIndentedString(subClassificationAlt)).append("\n"); + sb.append(" subclassificationTop: ").append(toIndentedString(subclassificationTop)).append("\n"); + sb.append(" score: ").append(toIndentedString(score)).append("\n"); + sb.append(" probabilityCalibrated: ").append(toIndentedString(probabilityCalibrated)).append("\n"); + sb.append(" probabilityAltCalibrated: ").append(toIndentedString(probabilityAltCalibrated)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoZippedIn.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoZippedIn.java index 5eb9493e..941f05e2 100644 --- a/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoZippedIn.java +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoZippedIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * FirstLastNameGeoZippedIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FirstLastNameGeoZippedIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameIn.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameIn.java index ba855179..1ff53596 100644 --- a/src/main/java/com/namsor/sdk2/model/FirstLastNameIn.java +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNameIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * FirstLastNameIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FirstLastNameIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameOriginedOut.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameOriginedOut.java index 28413da6..b67d61a6 100644 --- a/src/main/java/com/namsor/sdk2/model/FirstLastNameOriginedOut.java +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNameOriginedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ * Represents the output of inferring the LIKELY country of Origin from a personal name. */ @ApiModel(description = "Represents the output of inferring the LIKELY country of Origin from a personal name.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FirstLastNameOriginedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -298,10 +298,12 @@ public FirstLastNameOriginedOut probabilityCalibrated(Double probabilityCalibrat } /** - * The calibrated probability for countryOrigin to have been guessed correctly. + * The calibrated probability for countryOrigin to have been guessed correctly. -1 = still calibrating. + * minimum: -1 + * maximum: 1 * @return probabilityCalibrated **/ - @ApiModelProperty(value = "The calibrated probability for countryOrigin to have been guessed correctly.") + @ApiModelProperty(value = "The calibrated probability for countryOrigin to have been guessed correctly. -1 = still calibrating. ") public Double getProbabilityCalibrated() { return probabilityCalibrated; } @@ -316,10 +318,12 @@ public FirstLastNameOriginedOut probabilityAltCalibrated(Double probabilityAltCa } /** - * The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. + * The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. -1 = still calibrating. + * minimum: -1 + * maximum: 1 * @return probabilityAltCalibrated **/ - @ApiModelProperty(value = "The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly.") + @ApiModelProperty(value = "The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. -1 = still calibrating. ") public Double getProbabilityAltCalibrated() { return probabilityAltCalibrated; } diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameOut.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameOut.java index fa0fe264..ecad2619 100644 --- a/src/main/java/com/namsor/sdk2/model/FirstLastNameOut.java +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNameOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * First / last name structure corresponding to the most likely parsing. */ @ApiModel(description = "First / last name structure corresponding to the most likely parsing.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FirstLastNameOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneCodedOut.java b/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneCodedOut.java index 3c3be8ad..d102e3c8 100644 --- a/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneCodedOut.java +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneCodedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * Represents the output of inferring the LIKELY country and phone code from a personal name and phone number. */ @ApiModel(description = "Represents the output of inferring the LIKELY country and phone code from a personal name and phone number.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FirstLastNamePhoneCodedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberGeoIn.java b/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberGeoIn.java index e0095b16..2688f8e0 100644 --- a/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberGeoIn.java +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberGeoIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import com.namsor.sdk2.model.FirstLastNameOriginedOut; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -28,7 +27,7 @@ /** * FirstLastNamePhoneNumberGeoIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FirstLastNamePhoneNumberGeoIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -46,10 +45,6 @@ public class FirstLastNamePhoneNumberGeoIn { @SerializedName(SERIALIZED_NAME_PHONE_NUMBER) private String phoneNumber; - public static final String SERIALIZED_NAME_FIRST_LAST_NAME_ORIGINED_OUT = "FirstLastNameOriginedOut"; - @SerializedName(SERIALIZED_NAME_FIRST_LAST_NAME_ORIGINED_OUT) - private FirstLastNameOriginedOut firstLastNameOriginedOut = null; - public static final String SERIALIZED_NAME_COUNTRY_ISO2 = "countryIso2"; @SerializedName(SERIALIZED_NAME_COUNTRY_ISO2) private String countryIso2; @@ -130,24 +125,6 @@ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } - public FirstLastNamePhoneNumberGeoIn firstLastNameOriginedOut(FirstLastNameOriginedOut firstLastNameOriginedOut) { - this.firstLastNameOriginedOut = firstLastNameOriginedOut; - return this; - } - - /** - * Get firstLastNameOriginedOut - * @return firstLastNameOriginedOut - **/ - @ApiModelProperty(value = "") - public FirstLastNameOriginedOut getFirstLastNameOriginedOut() { - return firstLastNameOriginedOut; - } - - public void setFirstLastNameOriginedOut(FirstLastNameOriginedOut firstLastNameOriginedOut) { - this.firstLastNameOriginedOut = firstLastNameOriginedOut; - } - public FirstLastNamePhoneNumberGeoIn countryIso2(String countryIso2) { this.countryIso2 = countryIso2; return this; @@ -198,14 +175,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.firstName, firstLastNamePhoneNumberGeoIn.firstName) && Objects.equals(this.lastName, firstLastNamePhoneNumberGeoIn.lastName) && Objects.equals(this.phoneNumber, firstLastNamePhoneNumberGeoIn.phoneNumber) && - Objects.equals(this.firstLastNameOriginedOut, firstLastNamePhoneNumberGeoIn.firstLastNameOriginedOut) && Objects.equals(this.countryIso2, firstLastNamePhoneNumberGeoIn.countryIso2) && Objects.equals(this.countryIso2Alt, firstLastNamePhoneNumberGeoIn.countryIso2Alt); } @Override public int hashCode() { - return Objects.hash(id, firstName, lastName, phoneNumber, firstLastNameOriginedOut, countryIso2, countryIso2Alt); + return Objects.hash(id, firstName, lastName, phoneNumber, countryIso2, countryIso2Alt); } @@ -217,7 +193,6 @@ public String toString() { sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); - sb.append(" firstLastNameOriginedOut: ").append(toIndentedString(firstLastNameOriginedOut)).append("\n"); sb.append(" countryIso2: ").append(toIndentedString(countryIso2)).append("\n"); sb.append(" countryIso2Alt: ").append(toIndentedString(countryIso2Alt)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberIn.java b/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberIn.java index 22ab7666..88e17c3a 100644 --- a/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberIn.java +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import com.namsor.sdk2.model.FirstLastNameOriginedOut; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -28,7 +27,7 @@ /** * FirstLastNamePhoneNumberIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FirstLastNamePhoneNumberIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -46,10 +45,6 @@ public class FirstLastNamePhoneNumberIn { @SerializedName(SERIALIZED_NAME_PHONE_NUMBER) private String phoneNumber; - public static final String SERIALIZED_NAME_FIRST_LAST_NAME_ORIGINED_OUT = "FirstLastNameOriginedOut"; - @SerializedName(SERIALIZED_NAME_FIRST_LAST_NAME_ORIGINED_OUT) - private FirstLastNameOriginedOut firstLastNameOriginedOut = null; - public FirstLastNamePhoneNumberIn id(String id) { this.id = id; return this; @@ -122,24 +117,6 @@ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } - public FirstLastNamePhoneNumberIn firstLastNameOriginedOut(FirstLastNameOriginedOut firstLastNameOriginedOut) { - this.firstLastNameOriginedOut = firstLastNameOriginedOut; - return this; - } - - /** - * Get firstLastNameOriginedOut - * @return firstLastNameOriginedOut - **/ - @ApiModelProperty(value = "") - public FirstLastNameOriginedOut getFirstLastNameOriginedOut() { - return firstLastNameOriginedOut; - } - - public void setFirstLastNameOriginedOut(FirstLastNameOriginedOut firstLastNameOriginedOut) { - this.firstLastNameOriginedOut = firstLastNameOriginedOut; - } - @Override public boolean equals(java.lang.Object o) { @@ -153,13 +130,12 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.id, firstLastNamePhoneNumberIn.id) && Objects.equals(this.firstName, firstLastNamePhoneNumberIn.firstName) && Objects.equals(this.lastName, firstLastNamePhoneNumberIn.lastName) && - Objects.equals(this.phoneNumber, firstLastNamePhoneNumberIn.phoneNumber) && - Objects.equals(this.firstLastNameOriginedOut, firstLastNamePhoneNumberIn.firstLastNameOriginedOut); + Objects.equals(this.phoneNumber, firstLastNamePhoneNumberIn.phoneNumber); } @Override public int hashCode() { - return Objects.hash(id, firstName, lastName, phoneNumber, firstLastNameOriginedOut); + return Objects.hash(id, firstName, lastName, phoneNumber); } @@ -171,7 +147,6 @@ public String toString() { sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); - sb.append(" firstLastNameOriginedOut: ").append(toIndentedString(firstLastNameOriginedOut)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameUSRaceEthnicityOut.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameUSRaceEthnicityOut.java index 3583707f..3f3b7539 100644 --- a/src/main/java/com/namsor/sdk2/model/FirstLastNameUSRaceEthnicityOut.java +++ b/src/main/java/com/namsor/sdk2/model/FirstLastNameUSRaceEthnicityOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ * Represents the output of inferring the LIKELY US 'race/ethnicity' from a personal name, given US country of residence and (optionally) a ZIP5 code. */ @ApiModel(description = "Represents the output of inferring the LIKELY US 'race/ethnicity' from a personal name, given US country of residence and (optionally) a ZIP5 code.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class FirstLastNameUSRaceEthnicityOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -342,10 +342,12 @@ public FirstLastNameUSRaceEthnicityOut probabilityCalibrated(Double probabilityC } /** - * The calibrated probability for raceEthnicity to have been guessed correctly. + * The calibrated probability for raceEthnicity to have been guessed correctly. -1 = still calibrating. + * minimum: -1 + * maximum: 1 * @return probabilityCalibrated **/ - @ApiModelProperty(value = "The calibrated probability for raceEthnicity to have been guessed correctly.") + @ApiModelProperty(value = "The calibrated probability for raceEthnicity to have been guessed correctly. -1 = still calibrating. ") public Double getProbabilityCalibrated() { return probabilityCalibrated; } @@ -360,10 +362,12 @@ public FirstLastNameUSRaceEthnicityOut probabilityAltCalibrated(Double probabili } /** - * The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly. + * The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly. -1 = still calibrating. + * minimum: -1 + * maximum: 1 * @return probabilityAltCalibrated **/ - @ApiModelProperty(value = "The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly.") + @ApiModelProperty(value = "The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly. -1 = still calibrating. ") public Double getProbabilityAltCalibrated() { return probabilityAltCalibrated; } diff --git a/src/main/java/com/namsor/sdk2/model/MatchPersonalFirstLastNameIn.java b/src/main/java/com/namsor/sdk2/model/MatchPersonalFirstLastNameIn.java index d85b21ad..1923fb75 100644 --- a/src/main/java/com/namsor/sdk2/model/MatchPersonalFirstLastNameIn.java +++ b/src/main/java/com/namsor/sdk2/model/MatchPersonalFirstLastNameIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,7 +29,7 @@ /** * MatchPersonalFirstLastNameIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class MatchPersonalFirstLastNameIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/NameGeoIn.java b/src/main/java/com/namsor/sdk2/model/NameGeoIn.java index d28dc376..518af5b6 100644 --- a/src/main/java/com/namsor/sdk2/model/NameGeoIn.java +++ b/src/main/java/com/namsor/sdk2/model/NameGeoIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * NameGeoIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class NameGeoIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/NameIn.java b/src/main/java/com/namsor/sdk2/model/NameIn.java index 7192f90f..0c6cd97f 100644 --- a/src/main/java/com/namsor/sdk2/model/NameIn.java +++ b/src/main/java/com/namsor/sdk2/model/NameIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * NameIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class NameIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/NameMatchCandidateOut.java b/src/main/java/com/namsor/sdk2/model/NameMatchCandidateOut.java index a263a17f..b77da418 100644 --- a/src/main/java/com/namsor/sdk2/model/NameMatchCandidateOut.java +++ b/src/main/java/com/namsor/sdk2/model/NameMatchCandidateOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * The ordered list of name matching candidates */ @ApiModel(description = "The ordered list of name matching candidates") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class NameMatchCandidateOut { public static final String SERIALIZED_NAME_CANDIDATE_NAME = "candidateName"; @SerializedName(SERIALIZED_NAME_CANDIDATE_NAME) diff --git a/src/main/java/com/namsor/sdk2/model/NameMatchCandidatesOut.java b/src/main/java/com/namsor/sdk2/model/NameMatchCandidatesOut.java index 3327f5b9..5e95f814 100644 --- a/src/main/java/com/namsor/sdk2/model/NameMatchCandidatesOut.java +++ b/src/main/java/com/namsor/sdk2/model/NameMatchCandidatesOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * Classified matched names */ @ApiModel(description = "Classified matched names") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class NameMatchCandidatesOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) diff --git a/src/main/java/com/namsor/sdk2/model/NameMatchedOut.java b/src/main/java/com/namsor/sdk2/model/NameMatchedOut.java index 9c81177c..f1f33443 100644 --- a/src/main/java/com/namsor/sdk2/model/NameMatchedOut.java +++ b/src/main/java/com/namsor/sdk2/model/NameMatchedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * Classified matched names */ @ApiModel(description = "Classified matched names") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class NameMatchedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -38,9 +38,56 @@ public class NameMatchedOut { @SerializedName(SERIALIZED_NAME_ID) private String id; + /** + * The name matching status. + */ + @JsonAdapter(MatchStatusEnum.Adapter.class) + public enum MatchStatusEnum { + MATCH("Match"), + + MISMATCH("Mismatch"); + + private String value; + + MatchStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MatchStatusEnum fromValue(String text) { + for (MatchStatusEnum b : MatchStatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + text + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MatchStatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MatchStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MatchStatusEnum.fromValue(String.valueOf(value)); + } + } + } + public static final String SERIALIZED_NAME_MATCH_STATUS = "matchStatus"; @SerializedName(SERIALIZED_NAME_MATCH_STATUS) - private String matchStatus; + private MatchStatusEnum matchStatus; public static final String SERIALIZED_NAME_SCORE = "score"; @SerializedName(SERIALIZED_NAME_SCORE) @@ -82,7 +129,7 @@ public void setId(String id) { this.id = id; } - public NameMatchedOut matchStatus(String matchStatus) { + public NameMatchedOut matchStatus(MatchStatusEnum matchStatus) { this.matchStatus = matchStatus; return this; } @@ -92,11 +139,11 @@ public NameMatchedOut matchStatus(String matchStatus) { * @return matchStatus **/ @ApiModelProperty(value = "The name matching status.") - public String getMatchStatus() { + public MatchStatusEnum getMatchStatus() { return matchStatus; } - public void setMatchStatus(String matchStatus) { + public void setMatchStatus(MatchStatusEnum matchStatus) { this.matchStatus = matchStatus; } diff --git a/src/main/java/com/namsor/sdk2/model/PersonalNameGenderedOut.java b/src/main/java/com/namsor/sdk2/model/PersonalNameGenderedOut.java index 9e1408e1..8e56e314 100644 --- a/src/main/java/com/namsor/sdk2/model/PersonalNameGenderedOut.java +++ b/src/main/java/com/namsor/sdk2/model/PersonalNameGenderedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * Classified genderized names */ @ApiModel(description = "Classified genderized names") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class PersonalNameGenderedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -185,10 +185,12 @@ public PersonalNameGenderedOut genderScale(Double genderScale) { } /** - * Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value + * Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value. + * minimum: -1 + * maximum: 1 * @return genderScale **/ - @ApiModelProperty(value = "Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value") + @ApiModelProperty(value = "Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value.") public Double getGenderScale() { return genderScale; } @@ -223,10 +225,12 @@ public PersonalNameGenderedOut probabilityCalibrated(Double probabilityCalibrate } /** - * The calibrated probability for inferred gender to have been guessed correctly. + * The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating. + * minimum: -1 + * maximum: 1 * @return probabilityCalibrated **/ - @ApiModelProperty(value = "The calibrated probability for inferred gender to have been guessed correctly.") + @ApiModelProperty(value = "The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating. ") public Double getProbabilityCalibrated() { return probabilityCalibrated; } diff --git a/src/main/java/com/namsor/sdk2/model/PersonalNameGeoIn.java b/src/main/java/com/namsor/sdk2/model/PersonalNameGeoIn.java index 0edde25d..9edddb63 100644 --- a/src/main/java/com/namsor/sdk2/model/PersonalNameGeoIn.java +++ b/src/main/java/com/namsor/sdk2/model/PersonalNameGeoIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * PersonalNameGeoIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class PersonalNameGeoIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/PersonalNameGeoOut.java b/src/main/java/com/namsor/sdk2/model/PersonalNameGeoOut.java index 08e421aa..f35b6328 100644 --- a/src/main/java/com/namsor/sdk2/model/PersonalNameGeoOut.java +++ b/src/main/java/com/namsor/sdk2/model/PersonalNameGeoOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ * Classified geo names */ @ApiModel(description = "Classified geo names") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class PersonalNameGeoOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -276,10 +276,12 @@ public PersonalNameGeoOut probabilityCalibrated(Double probabilityCalibrated) { } /** - * The calibrated probability for country to have been guessed correctly. + * The calibrated probability for country to have been guessed correctly. -1 = still calibrating. + * minimum: -1 + * maximum: 1 * @return probabilityCalibrated **/ - @ApiModelProperty(value = "The calibrated probability for country to have been guessed correctly.") + @ApiModelProperty(value = "The calibrated probability for country to have been guessed correctly. -1 = still calibrating. ") public Double getProbabilityCalibrated() { return probabilityCalibrated; } @@ -294,10 +296,12 @@ public PersonalNameGeoOut probabilityAltCalibrated(Double probabilityAltCalibrat } /** - * The calibrated probability for country OR countryAlt to have been guessed correctly. + * The calibrated probability for country OR countryAlt to have been guessed correctly. -1 = still calibrating. + * minimum: -1 + * maximum: 1 * @return probabilityAltCalibrated **/ - @ApiModelProperty(value = "The calibrated probability for country OR countryAlt to have been guessed correctly.") + @ApiModelProperty(value = "The calibrated probability for country OR countryAlt to have been guessed correctly. -1 = still calibrating. ") public Double getProbabilityAltCalibrated() { return probabilityAltCalibrated; } diff --git a/src/main/java/com/namsor/sdk2/model/PersonalNameIn.java b/src/main/java/com/namsor/sdk2/model/PersonalNameIn.java index bec47dcc..84419cd8 100644 --- a/src/main/java/com/namsor/sdk2/model/PersonalNameIn.java +++ b/src/main/java/com/namsor/sdk2/model/PersonalNameIn.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * PersonalNameIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class PersonalNameIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/PersonalNameParsedOut.java b/src/main/java/com/namsor/sdk2/model/PersonalNameParsedOut.java index da4d3fb5..99d455b2 100644 --- a/src/main/java/com/namsor/sdk2/model/PersonalNameParsedOut.java +++ b/src/main/java/com/namsor/sdk2/model/PersonalNameParsedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ /** * PersonalNameParsedOut */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class PersonalNameParsedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -42,13 +42,171 @@ public class PersonalNameParsedOut { @SerializedName(SERIALIZED_NAME_NAME) private String name; + /** + * Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order. + */ + @JsonAdapter(NameParserTypeEnum.Adapter.class) + public enum NameParserTypeEnum { + FN1LN1("FN1LN1"), + + LN1FN1("LN1FN1"), + + FN1LN2("FN1LN2"), + + LN2FN1("LN2FN1"), + + FN1LNX("FN1LNx"), + + LNXFN1("LNxFN1"), + + FN2LN1("FN2LN1"), + + LN1FN2("LN1FN2"), + + FN2LN2("FN2LN2"), + + LN2FN2("LN2FN2"), + + FN2LNX("FN2LNx"), + + LNXFN2("LNxFN2"), + + FNXLN1("FNxLN1"), + + LN1FNX("LN1FNx"), + + FNXLN2("FNxLN2"), + + LN2FNX("LN2FNx"), + + FNXLNX("FNxLNx"), + + LNXFNX("LNxFNx"); + + private String value; + + NameParserTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static NameParserTypeEnum fromValue(String text) { + for (NameParserTypeEnum b : NameParserTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + text + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final NameParserTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public NameParserTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return NameParserTypeEnum.fromValue(String.valueOf(value)); + } + } + } + public static final String SERIALIZED_NAME_NAME_PARSER_TYPE = "nameParserType"; @SerializedName(SERIALIZED_NAME_NAME_PARSER_TYPE) - private String nameParserType; + private NameParserTypeEnum nameParserType; + + /** + * Second best alternative parsing. Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order. + */ + @JsonAdapter(NameParserTypeAltEnum.Adapter.class) + public enum NameParserTypeAltEnum { + FN1LN1("FN1LN1"), + + LN1FN1("LN1FN1"), + + FN1LN2("FN1LN2"), + + LN2FN1("LN2FN1"), + + FN1LNX("FN1LNx"), + + LNXFN1("LNxFN1"), + + FN2LN1("FN2LN1"), + + LN1FN2("LN1FN2"), + + FN2LN2("FN2LN2"), + + LN2FN2("LN2FN2"), + + FN2LNX("FN2LNx"), + + LNXFN2("LNxFN2"), + + FNXLN1("FNxLN1"), + + LN1FNX("LN1FNx"), + + FNXLN2("FNxLN2"), + + LN2FNX("LN2FNx"), + + FNXLNX("FNxLNx"), + + LNXFNX("LNxFNx"); + + private String value; + + NameParserTypeAltEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static NameParserTypeAltEnum fromValue(String text) { + for (NameParserTypeAltEnum b : NameParserTypeAltEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + text + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final NameParserTypeAltEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public NameParserTypeAltEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return NameParserTypeAltEnum.fromValue(String.valueOf(value)); + } + } + } public static final String SERIALIZED_NAME_NAME_PARSER_TYPE_ALT = "nameParserTypeAlt"; @SerializedName(SERIALIZED_NAME_NAME_PARSER_TYPE_ALT) - private String nameParserTypeAlt; + private NameParserTypeAltEnum nameParserTypeAlt; public static final String SERIALIZED_NAME_FIRST_LAST_NAME = "firstLastName"; @SerializedName(SERIALIZED_NAME_FIRST_LAST_NAME) @@ -112,7 +270,7 @@ public void setName(String name) { this.name = name; } - public PersonalNameParsedOut nameParserType(String nameParserType) { + public PersonalNameParsedOut nameParserType(NameParserTypeEnum nameParserType) { this.nameParserType = nameParserType; return this; } @@ -122,15 +280,15 @@ public PersonalNameParsedOut nameParserType(String nameParserType) { * @return nameParserType **/ @ApiModelProperty(value = "Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order.") - public String getNameParserType() { + public NameParserTypeEnum getNameParserType() { return nameParserType; } - public void setNameParserType(String nameParserType) { + public void setNameParserType(NameParserTypeEnum nameParserType) { this.nameParserType = nameParserType; } - public PersonalNameParsedOut nameParserTypeAlt(String nameParserTypeAlt) { + public PersonalNameParsedOut nameParserTypeAlt(NameParserTypeAltEnum nameParserTypeAlt) { this.nameParserTypeAlt = nameParserTypeAlt; return this; } @@ -140,11 +298,11 @@ public PersonalNameParsedOut nameParserTypeAlt(String nameParserTypeAlt) { * @return nameParserTypeAlt **/ @ApiModelProperty(value = "Second best alternative parsing. Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order.") - public String getNameParserTypeAlt() { + public NameParserTypeAltEnum getNameParserTypeAlt() { return nameParserTypeAlt; } - public void setNameParserTypeAlt(String nameParserTypeAlt) { + public void setNameParserTypeAlt(NameParserTypeAltEnum nameParserTypeAlt) { this.nameParserTypeAlt = nameParserTypeAlt; } diff --git a/src/main/java/com/namsor/sdk2/model/ProperNounCategorizedOut.java b/src/main/java/com/namsor/sdk2/model/ProperNounCategorizedOut.java index 6a8641d1..5975a161 100644 --- a/src/main/java/com/namsor/sdk2/model/ProperNounCategorizedOut.java +++ b/src/main/java/com/namsor/sdk2/model/ProperNounCategorizedOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * Classified typed proper names */ @ApiModel(description = "Classified typed proper names") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class ProperNounCategorizedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) diff --git a/src/main/java/com/namsor/sdk2/model/SoftwareVersionOut.java b/src/main/java/com/namsor/sdk2/model/SoftwareVersionOut.java index 8cc620bd..ac1e9e30 100644 --- a/src/main/java/com/namsor/sdk2/model/SoftwareVersionOut.java +++ b/src/main/java/com/namsor/sdk2/model/SoftwareVersionOut.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ * The software version. */ @ApiModel(description = "The software version.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-19T10:09:03.048+02:00[Europe/Berlin]") public class SoftwareVersionOut { public static final String SERIALIZED_NAME_SOFTWARE_NAME_AND_VERSION = "softwareNameAndVersion"; @SerializedName(SERIALIZED_NAME_SOFTWARE_NAME_AND_VERSION) diff --git a/src/test/java/com/namsor/sdk2/api/AdminApiTest.java b/src/test/java/com/namsor/sdk2/api/AdminApiTest.java index 5156676f..e81e9937 100644 --- a/src/test/java/com/namsor/sdk2/api/AdminApiTest.java +++ b/src/test/java/com/namsor/sdk2/api/AdminApiTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,25 @@ public class AdminApiTest { public void anonymizeTest() throws ApiException { String source = null; Boolean anonymized = null; - api.anonymize(source, anonymized); + String token = null; + api.anonymize(source, anonymized, token); + + // TODO: test validations + } + + /** + * Activate/deactivate anonymization for a source. + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void anonymize1Test() throws ApiException { + String source = null; + Boolean anonymized = null; + api.anonymize1(source, anonymized); // TODO: test validations } @@ -164,6 +182,24 @@ public void learnableTest() throws ApiException { // TODO: test validations } + /** + * Activate/deactivate learning from a source. + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void learnable1Test() throws ApiException { + String source = null; + Boolean learnable = null; + String token = null; + api.learnable1(source, learnable, token); + + // TODO: test validations + } + /** * Get the current software version * diff --git a/src/test/java/com/namsor/sdk2/api/ChineseApiTest.java b/src/test/java/com/namsor/sdk2/api/ChineseApiTest.java index 6cf311dd..5993ce87 100644 --- a/src/test/java/com/namsor/sdk2/api/ChineseApiTest.java +++ b/src/test/java/com/namsor/sdk2/api/ChineseApiTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/api/GeneralApiTest.java b/src/test/java/com/namsor/sdk2/api/GeneralApiTest.java index 1578c8fb..4297f8c0 100644 --- a/src/test/java/com/namsor/sdk2/api/GeneralApiTest.java +++ b/src/test/java/com/namsor/sdk2/api/GeneralApiTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/api/JapaneseApiTest.java b/src/test/java/com/namsor/sdk2/api/JapaneseApiTest.java index 7a5a1f76..6387425e 100644 --- a/src/test/java/com/namsor/sdk2/api/JapaneseApiTest.java +++ b/src/test/java/com/namsor/sdk2/api/JapaneseApiTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -128,7 +128,7 @@ public void japaneseNameGenderKanjiCandidatesBatchTest() throws ApiException { } /** - * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. + * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae * * * @@ -139,14 +139,13 @@ public void japaneseNameGenderKanjiCandidatesBatchTest() throws ApiException { public void japaneseNameKanjiCandidatesTest() throws ApiException { String japaneseSurnameLatin = null; String japaneseGivenNameLatin = null; - String knownGender = null; - NameMatchCandidatesOut response = api.japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender); + NameMatchCandidatesOut response = api.japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin); // TODO: test validations } /** - * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae + * Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. * * * @@ -157,7 +156,8 @@ public void japaneseNameKanjiCandidatesTest() throws ApiException { public void japaneseNameKanjiCandidates1Test() throws ApiException { String japaneseSurnameLatin = null; String japaneseGivenNameLatin = null; - NameMatchCandidatesOut response = api.japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin); + String knownGender = null; + NameMatchCandidatesOut response = api.japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender); // TODO: test validations } diff --git a/src/test/java/com/namsor/sdk2/api/PersonalApiTest.java b/src/test/java/com/namsor/sdk2/api/PersonalApiTest.java index 4570048a..9b7f99e2 100644 --- a/src/test/java/com/namsor/sdk2/api/PersonalApiTest.java +++ b/src/test/java/com/namsor/sdk2/api/PersonalApiTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import com.namsor.sdk2.model.BatchFirstLastNameDiasporaedOut; import com.namsor.sdk2.model.BatchFirstLastNameGenderedOut; import com.namsor.sdk2.model.BatchFirstLastNameGeoIn; +import com.namsor.sdk2.model.BatchFirstLastNameGeoSubclassificationOut; import com.namsor.sdk2.model.BatchFirstLastNameGeoZippedIn; import com.namsor.sdk2.model.BatchFirstLastNameIn; import com.namsor.sdk2.model.BatchFirstLastNameOriginedOut; @@ -31,6 +32,7 @@ import com.namsor.sdk2.model.CorridorOut; import com.namsor.sdk2.model.FirstLastNameDiasporaedOut; import com.namsor.sdk2.model.FirstLastNameGenderedOut; +import com.namsor.sdk2.model.FirstLastNameGeoSubclassificationOut; import com.namsor.sdk2.model.FirstLastNameOriginedOut; import com.namsor.sdk2.model.FirstLastNameUSRaceEthnicityOut; import com.namsor.sdk2.model.PersonalNameGenderedOut; @@ -386,6 +388,40 @@ public void parseNameGeoBatchTest() throws ApiException { // TODO: test validations } + /** + * [USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void subclassificationTest() throws ApiException { + String countryIso2 = null; + String firstName = null; + String lastName = null; + FirstLastNameGeoSubclassificationOut response = api.subclassification(countryIso2, firstName, lastName); + + // TODO: test validations + } + + /** + * [USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void subclassificationBatchTest() throws ApiException { + BatchFirstLastNameGeoIn batchFirstLastNameGeoIn = null; + BatchFirstLastNameGeoSubclassificationOut response = api.subclassificationBatch(batchFirstLastNameGeoIn); + + // TODO: test validations + } + /** * [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). * diff --git a/src/test/java/com/namsor/sdk2/api/SocialApiTest.java b/src/test/java/com/namsor/sdk2/api/SocialApiTest.java index 4b5061e8..cea6ee17 100644 --- a/src/test/java/com/namsor/sdk2/api/SocialApiTest.java +++ b/src/test/java/com/namsor/sdk2/api/SocialApiTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/APIBillingPeriodUsageOutTest.java b/src/test/java/com/namsor/sdk2/model/APIBillingPeriodUsageOutTest.java index d6e12bff..904f7a4a 100644 --- a/src/test/java/com/namsor/sdk2/model/APIBillingPeriodUsageOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/APIBillingPeriodUsageOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/APIClassifierOutTest.java b/src/test/java/com/namsor/sdk2/model/APIClassifierOutTest.java index c6fe8de9..5e882226 100644 --- a/src/test/java/com/namsor/sdk2/model/APIClassifierOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/APIClassifierOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/APIClassifierTaxonomyOutTest.java b/src/test/java/com/namsor/sdk2/model/APIClassifierTaxonomyOutTest.java index 173bbf25..c1549b10 100644 --- a/src/test/java/com/namsor/sdk2/model/APIClassifierTaxonomyOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/APIClassifierTaxonomyOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/APIClassifiersStatusOutTest.java b/src/test/java/com/namsor/sdk2/model/APIClassifiersStatusOutTest.java index 8dc497c1..8ff13ba9 100644 --- a/src/test/java/com/namsor/sdk2/model/APIClassifiersStatusOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/APIClassifiersStatusOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/APICounterV2OutTest.java b/src/test/java/com/namsor/sdk2/model/APICounterV2OutTest.java index f49cf780..101201d2 100644 --- a/src/test/java/com/namsor/sdk2/model/APICounterV2OutTest.java +++ b/src/test/java/com/namsor/sdk2/model/APICounterV2OutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/APIKeyOutTest.java b/src/test/java/com/namsor/sdk2/model/APIKeyOutTest.java index d439a57b..8d281c67 100644 --- a/src/test/java/com/namsor/sdk2/model/APIKeyOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/APIKeyOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/APIPeriodUsageOutTest.java b/src/test/java/com/namsor/sdk2/model/APIPeriodUsageOutTest.java index 62f6147e..5f04bd54 100644 --- a/src/test/java/com/namsor/sdk2/model/APIPeriodUsageOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/APIPeriodUsageOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/APIPlanSubscriptionOutTest.java b/src/test/java/com/namsor/sdk2/model/APIPlanSubscriptionOutTest.java index 29326376..b1fae937 100644 --- a/src/test/java/com/namsor/sdk2/model/APIPlanSubscriptionOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/APIPlanSubscriptionOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/APIServiceOutTest.java b/src/test/java/com/namsor/sdk2/model/APIServiceOutTest.java index eccb13dd..fa7ca0db 100644 --- a/src/test/java/com/namsor/sdk2/model/APIServiceOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/APIServiceOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/APIServicesOutTest.java b/src/test/java/com/namsor/sdk2/model/APIServicesOutTest.java index e6393c1e..12c90454 100644 --- a/src/test/java/com/namsor/sdk2/model/APIServicesOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/APIServicesOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/APIUsageAggregatedOutTest.java b/src/test/java/com/namsor/sdk2/model/APIUsageAggregatedOutTest.java index 58eab659..90ba94cb 100644 --- a/src/test/java/com/namsor/sdk2/model/APIUsageAggregatedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/APIUsageAggregatedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/APIUsageHistoryOutTest.java b/src/test/java/com/namsor/sdk2/model/APIUsageHistoryOutTest.java index 6e81ad0a..d78b963b 100644 --- a/src/test/java/com/namsor/sdk2/model/APIUsageHistoryOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/APIUsageHistoryOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchCorridorInTest.java b/src/test/java/com/namsor/sdk2/model/BatchCorridorInTest.java index 524ee559..af861ff1 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchCorridorInTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchCorridorInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchCorridorOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchCorridorOutTest.java index 995a1f7f..5a898cba 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchCorridorOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchCorridorOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameDiasporaedOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameDiasporaedOutTest.java index fbb1bda9..10ff19ab 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameDiasporaedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameDiasporaedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGenderInTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGenderInTest.java index 9ab83cba..0ccd46b3 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGenderInTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGenderInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGenderedOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGenderedOutTest.java index ffa01e61..181d7df3 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGenderedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGenderedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoInTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoInTest.java index 1a1ab37f..21097888 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoInTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoSubclassificationOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoSubclassificationOutTest.java new file mode 100644 index 00000000..678b56c4 --- /dev/null +++ b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoSubclassificationOutTest.java @@ -0,0 +1,54 @@ +/* + * NamSor API v2 + * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! + * + * OpenAPI spec version: 2.0.16 + * Contact: contact@namsor.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.namsor.sdk2.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.namsor.sdk2.model.FirstLastNameGeoSubclassificationOut; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for BatchFirstLastNameGeoSubclassificationOut + */ +public class BatchFirstLastNameGeoSubclassificationOutTest { + private final BatchFirstLastNameGeoSubclassificationOut model = new BatchFirstLastNameGeoSubclassificationOut(); + + /** + * Model tests for BatchFirstLastNameGeoSubclassificationOut + */ + @Test + public void testBatchFirstLastNameGeoSubclassificationOut() { + // TODO: test BatchFirstLastNameGeoSubclassificationOut + } + + /** + * Test the property 'personalNames' + */ + @Test + public void personalNamesTest() { + // TODO: test personalNames + } + +} diff --git a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoZippedInTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoZippedInTest.java index 9137b9a7..ab18a8fa 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoZippedInTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoZippedInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameInTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameInTest.java index 3f0b71c4..0efb60b3 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameInTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameOriginedOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameOriginedOutTest.java index da617294..71b68062 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameOriginedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameOriginedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneCodedOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneCodedOutTest.java index d659f665..6a112f10 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneCodedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneCodedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberGeoInTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberGeoInTest.java index 1f37c7dd..4099a65e 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberGeoInTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberGeoInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberInTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberInTest.java index cdc1ba94..74590ac0 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberInTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameUSRaceEthnicityOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameUSRaceEthnicityOutTest.java index e6cb9466..d619de0b 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameUSRaceEthnicityOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameUSRaceEthnicityOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchMatchPersonalFirstLastNameInTest.java b/src/test/java/com/namsor/sdk2/model/BatchMatchPersonalFirstLastNameInTest.java index 21bd033e..d2d2337c 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchMatchPersonalFirstLastNameInTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchMatchPersonalFirstLastNameInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchNameGeoInTest.java b/src/test/java/com/namsor/sdk2/model/BatchNameGeoInTest.java index d4ff359d..99cfd27e 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchNameGeoInTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchNameGeoInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchNameInTest.java b/src/test/java/com/namsor/sdk2/model/BatchNameInTest.java index 83199ea6..a02a167c 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchNameInTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchNameInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchNameMatchCandidatesOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchNameMatchCandidatesOutTest.java index 5526f105..6eceacba 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchNameMatchCandidatesOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchNameMatchCandidatesOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchNameMatchedOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchNameMatchedOutTest.java index edce73a0..a8c5cdef 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchNameMatchedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchNameMatchedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchPersonalNameGenderedOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchPersonalNameGenderedOutTest.java index dc4101b5..f7dcf089 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchPersonalNameGenderedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchPersonalNameGenderedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchPersonalNameGeoInTest.java b/src/test/java/com/namsor/sdk2/model/BatchPersonalNameGeoInTest.java index 8e180d59..ac40c6ec 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchPersonalNameGeoInTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchPersonalNameGeoInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchPersonalNameGeoOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchPersonalNameGeoOutTest.java index 54c2a5d0..1e2a2fd0 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchPersonalNameGeoOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchPersonalNameGeoOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchPersonalNameInTest.java b/src/test/java/com/namsor/sdk2/model/BatchPersonalNameInTest.java index 02614055..9c6579a8 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchPersonalNameInTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchPersonalNameInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchPersonalNameParsedOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchPersonalNameParsedOutTest.java index fea27b56..741937bc 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchPersonalNameParsedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchPersonalNameParsedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/BatchProperNounCategorizedOutTest.java b/src/test/java/com/namsor/sdk2/model/BatchProperNounCategorizedOutTest.java index 4858de04..fb747d31 100644 --- a/src/test/java/com/namsor/sdk2/model/BatchProperNounCategorizedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/BatchProperNounCategorizedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/CorridorInTest.java b/src/test/java/com/namsor/sdk2/model/CorridorInTest.java index c4a74da7..04d79926 100644 --- a/src/test/java/com/namsor/sdk2/model/CorridorInTest.java +++ b/src/test/java/com/namsor/sdk2/model/CorridorInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/CorridorOutTest.java b/src/test/java/com/namsor/sdk2/model/CorridorOutTest.java index 6f0b4fd0..f9421a8d 100644 --- a/src/test/java/com/namsor/sdk2/model/CorridorOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/CorridorOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/FeedbackLoopOutTest.java b/src/test/java/com/namsor/sdk2/model/FeedbackLoopOutTest.java index 7fce7e57..f1885aff 100644 --- a/src/test/java/com/namsor/sdk2/model/FeedbackLoopOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/FeedbackLoopOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameDiasporaedOutTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameDiasporaedOutTest.java index 6ff0da0e..79de21c0 100644 --- a/src/test/java/com/namsor/sdk2/model/FirstLastNameDiasporaedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNameDiasporaedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -122,4 +122,20 @@ public void ethnicitiesTopTest() { // TODO: test ethnicitiesTop } + /** + * Test the property 'probabilityCalibrated' + */ + @Test + public void probabilityCalibratedTest() { + // TODO: test probabilityCalibrated + } + + /** + * Test the property 'probabilityAltCalibrated' + */ + @Test + public void probabilityAltCalibratedTest() { + // TODO: test probabilityAltCalibrated + } + } diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameGenderInTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameGenderInTest.java index d13dd3fa..d1c1f502 100644 --- a/src/test/java/com/namsor/sdk2/model/FirstLastNameGenderInTest.java +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNameGenderInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameGenderedOutTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameGenderedOutTest.java index 77da4a76..8ff482cc 100644 --- a/src/test/java/com/namsor/sdk2/model/FirstLastNameGenderedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNameGenderedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoInTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoInTest.java index cc670b57..77fc5ba3 100644 --- a/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoInTest.java +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoSubclassificationOutTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoSubclassificationOutTest.java new file mode 100644 index 00000000..f443cec3 --- /dev/null +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoSubclassificationOutTest.java @@ -0,0 +1,133 @@ +/* + * NamSor API v2 + * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! + * + * OpenAPI spec version: 2.0.16 + * Contact: contact@namsor.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.namsor.sdk2.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for FirstLastNameGeoSubclassificationOut + */ +public class FirstLastNameGeoSubclassificationOutTest { + private final FirstLastNameGeoSubclassificationOut model = new FirstLastNameGeoSubclassificationOut(); + + /** + * Model tests for FirstLastNameGeoSubclassificationOut + */ + @Test + public void testFirstLastNameGeoSubclassificationOut() { + // TODO: test FirstLastNameGeoSubclassificationOut + } + + /** + * Test the property 'script' + */ + @Test + public void scriptTest() { + // TODO: test script + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'firstName' + */ + @Test + public void firstNameTest() { + // TODO: test firstName + } + + /** + * Test the property 'lastName' + */ + @Test + public void lastNameTest() { + // TODO: test lastName + } + + /** + * Test the property 'countryIso2' + */ + @Test + public void countryIso2Test() { + // TODO: test countryIso2 + } + + /** + * Test the property 'subClassification' + */ + @Test + public void subClassificationTest() { + // TODO: test subClassification + } + + /** + * Test the property 'subClassificationAlt' + */ + @Test + public void subClassificationAltTest() { + // TODO: test subClassificationAlt + } + + /** + * Test the property 'subclassificationTop' + */ + @Test + public void subclassificationTopTest() { + // TODO: test subclassificationTop + } + + /** + * Test the property 'score' + */ + @Test + public void scoreTest() { + // TODO: test score + } + + /** + * Test the property 'probabilityCalibrated' + */ + @Test + public void probabilityCalibratedTest() { + // TODO: test probabilityCalibrated + } + + /** + * Test the property 'probabilityAltCalibrated' + */ + @Test + public void probabilityAltCalibratedTest() { + // TODO: test probabilityAltCalibrated + } + +} diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoZippedInTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoZippedInTest.java index 4a28f2f7..f9fb5e90 100644 --- a/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoZippedInTest.java +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoZippedInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameInTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameInTest.java index ea3adea7..726e2808 100644 --- a/src/test/java/com/namsor/sdk2/model/FirstLastNameInTest.java +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNameInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameOriginedOutTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameOriginedOutTest.java index 92f59694..174172a9 100644 --- a/src/test/java/com/namsor/sdk2/model/FirstLastNameOriginedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNameOriginedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameOutTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameOutTest.java index 4c4510c4..f0246ed5 100644 --- a/src/test/java/com/namsor/sdk2/model/FirstLastNameOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNameOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneCodedOutTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneCodedOutTest.java index d2684396..8939346e 100644 --- a/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneCodedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneCodedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberGeoInTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberGeoInTest.java index aab967fb..8e83158d 100644 --- a/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberGeoInTest.java +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberGeoInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import com.namsor.sdk2.model.FirstLastNameOriginedOut; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -73,14 +72,6 @@ public void phoneNumberTest() { // TODO: test phoneNumber } - /** - * Test the property 'firstLastNameOriginedOut' - */ - @Test - public void firstLastNameOriginedOutTest() { - // TODO: test firstLastNameOriginedOut - } - /** * Test the property 'countryIso2' */ diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberInTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberInTest.java index e2f07f07..55f6ae49 100644 --- a/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberInTest.java +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import com.namsor.sdk2.model.FirstLastNameOriginedOut; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -73,12 +72,4 @@ public void phoneNumberTest() { // TODO: test phoneNumber } - /** - * Test the property 'firstLastNameOriginedOut' - */ - @Test - public void firstLastNameOriginedOutTest() { - // TODO: test firstLastNameOriginedOut - } - } diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameUSRaceEthnicityOutTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameUSRaceEthnicityOutTest.java index 8abf23a2..4d9e1966 100644 --- a/src/test/java/com/namsor/sdk2/model/FirstLastNameUSRaceEthnicityOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/FirstLastNameUSRaceEthnicityOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/MatchPersonalFirstLastNameInTest.java b/src/test/java/com/namsor/sdk2/model/MatchPersonalFirstLastNameInTest.java index 3b82f661..f9d05444 100644 --- a/src/test/java/com/namsor/sdk2/model/MatchPersonalFirstLastNameInTest.java +++ b/src/test/java/com/namsor/sdk2/model/MatchPersonalFirstLastNameInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/NameGeoInTest.java b/src/test/java/com/namsor/sdk2/model/NameGeoInTest.java index 6fd1a909..aeb3c877 100644 --- a/src/test/java/com/namsor/sdk2/model/NameGeoInTest.java +++ b/src/test/java/com/namsor/sdk2/model/NameGeoInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/NameInTest.java b/src/test/java/com/namsor/sdk2/model/NameInTest.java index c1406804..74253d99 100644 --- a/src/test/java/com/namsor/sdk2/model/NameInTest.java +++ b/src/test/java/com/namsor/sdk2/model/NameInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/NameMatchCandidateOutTest.java b/src/test/java/com/namsor/sdk2/model/NameMatchCandidateOutTest.java index c4ec164f..b58153d6 100644 --- a/src/test/java/com/namsor/sdk2/model/NameMatchCandidateOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/NameMatchCandidateOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/NameMatchCandidatesOutTest.java b/src/test/java/com/namsor/sdk2/model/NameMatchCandidatesOutTest.java index a56da845..ee96f75b 100644 --- a/src/test/java/com/namsor/sdk2/model/NameMatchCandidatesOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/NameMatchCandidatesOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/NameMatchedOutTest.java b/src/test/java/com/namsor/sdk2/model/NameMatchedOutTest.java index f7a77cfe..388a43fc 100644 --- a/src/test/java/com/namsor/sdk2/model/NameMatchedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/NameMatchedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/PersonalNameGenderedOutTest.java b/src/test/java/com/namsor/sdk2/model/PersonalNameGenderedOutTest.java index cdd44de9..e81f8432 100644 --- a/src/test/java/com/namsor/sdk2/model/PersonalNameGenderedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/PersonalNameGenderedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/PersonalNameGeoInTest.java b/src/test/java/com/namsor/sdk2/model/PersonalNameGeoInTest.java index 7d89af65..431f33ca 100644 --- a/src/test/java/com/namsor/sdk2/model/PersonalNameGeoInTest.java +++ b/src/test/java/com/namsor/sdk2/model/PersonalNameGeoInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/PersonalNameGeoOutTest.java b/src/test/java/com/namsor/sdk2/model/PersonalNameGeoOutTest.java index 6b020725..0091f7f1 100644 --- a/src/test/java/com/namsor/sdk2/model/PersonalNameGeoOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/PersonalNameGeoOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/PersonalNameInTest.java b/src/test/java/com/namsor/sdk2/model/PersonalNameInTest.java index a504f9a8..9a7d4043 100644 --- a/src/test/java/com/namsor/sdk2/model/PersonalNameInTest.java +++ b/src/test/java/com/namsor/sdk2/model/PersonalNameInTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/PersonalNameParsedOutTest.java b/src/test/java/com/namsor/sdk2/model/PersonalNameParsedOutTest.java index 985d0402..e70931a5 100644 --- a/src/test/java/com/namsor/sdk2/model/PersonalNameParsedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/PersonalNameParsedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/ProperNounCategorizedOutTest.java b/src/test/java/com/namsor/sdk2/model/ProperNounCategorizedOutTest.java index 794f9325..e645ca1b 100644 --- a/src/test/java/com/namsor/sdk2/model/ProperNounCategorizedOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/ProperNounCategorizedOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/test/java/com/namsor/sdk2/model/SoftwareVersionOutTest.java b/src/test/java/com/namsor/sdk2/model/SoftwareVersionOutTest.java index 3d498935..ed93fb16 100644 --- a/src/test/java/com/namsor/sdk2/model/SoftwareVersionOutTest.java +++ b/src/test/java/com/namsor/sdk2/model/SoftwareVersionOutTest.java @@ -2,7 +2,7 @@ * NamSor API v2 * NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! * - * OpenAPI spec version: 2.0.15 + * OpenAPI spec version: 2.0.16 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/target/apidocs/com/namsor/sdk2/api/AdminApi.html b/target/apidocs/com/namsor/sdk2/api/AdminApi.html index 2f6b950c..6ce3fb7d 100644 --- a/target/apidocs/com/namsor/sdk2/api/AdminApi.html +++ b/target/apidocs/com/namsor/sdk2/api/AdminApi.html @@ -2,10 +2,10 @@ - + -AdminApi (namsor-sdk2 2.0.15 API) - +AdminApi (namsor-sdk2 2.0.16 API) + @@ -13,13 +13,13 @@ @@ -13,7 +13,7 @@ @@ -13,13 +13,13 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@