diff --git a/README.md b/README.md index 22fcd719..d17aa9c6 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # namsor-sdk2 NamSor API v2 -- API version: 2.0.14 - - Build date: 2021-07-12T18:00:09.597+02:00[Europe/Berlin] +- API version: 2.0.15 + - Build date: 2021-07-17T18:27:27.141+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! @@ -41,7 +41,7 @@ Add this dependency to your project's POM: com.namsor namsor-sdk2 - 2.0.14 + 2.0.15 compile ``` @@ -51,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.14" +compile "com.namsor:namsor-sdk2:2.0.15" ``` ### Others @@ -64,7 +64,7 @@ mvn clean package Then manually install the following JARs: -* `target/namsor-sdk2-2.0.14.jar` +* `target/namsor-sdk2-2.0.15.jar` * `target/lib/*.jar` ## Getting Started @@ -93,14 +93,12 @@ public class AdminApiExample { //api_key.setApiKeyPrefix("Token"); AdminApi apiInstance = new AdminApi(); - String apiKey = "apiKey_example"; // String | - Long usageCredits = 56L; // Long | - String userMessage = "userMessage_example"; // String | + String source = "source_example"; // String | + Boolean anonymized = true; // Boolean | try { - SystemMetricsOut result = apiInstance.addCredits(apiKey, usageCredits, userMessage); - System.out.println(result); + apiInstance.anonymize(source, anonymized); } catch (ApiException e) { - System.err.println("Exception when calling AdminApi#addCredits"); + System.err.println("Exception when calling AdminApi#anonymize"); e.printStackTrace(); } } @@ -114,44 +112,16 @@ All URIs are relative to *https://v2.namsor.com/NamSorAPIv2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AdminApi* | [**addCredits**](docs/AdminApi.md#addCredits) | **GET** /api2/json/addCredits/{apiKey}/{usageCredits}/{userMessage} | Add usage credits to an API Key. *AdminApi* | [**anonymize**](docs/AdminApi.md#anonymize) | **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. +*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. *AdminApi* | [**apiUsageHistoryAggregate**](docs/AdminApi.md#apiUsageHistoryAggregate) | **GET** /api2/json/apiUsageHistoryAggregate | Print historical API usage (in an aggregated view, by service, by day/hour/min). -*AdminApi* | [**availablePlans**](docs/AdminApi.md#availablePlans) | **GET** /api2/json/availablePlans/{token} | List all available plans in the user's preferred currency. -*AdminApi* | [**availablePlans1**](docs/AdminApi.md#availablePlans1) | **GET** /api2/json/availablePlans | List all available plans in the default currency (usd). -*AdminApi* | [**availableServices**](docs/AdminApi.md#availableServices) | **GET** /api2/json/apiServices | List of API services and usage cost in Units (default is 1=ONE Unit). -*AdminApi* | [**billingCurrencies**](docs/AdminApi.md#billingCurrencies) | **GET** /api2/json/billingCurrencies | List possible currency options for billing (USD, EUR, GBP, ...) -*AdminApi* | [**billingHistory**](docs/AdminApi.md#billingHistory) | **GET** /api2/json/billingHistory/{token} | Read the history billing information (invoices paid via Stripe or manually). -*AdminApi* | [**billingInfo**](docs/AdminApi.md#billingInfo) | **GET** /api2/json/billingInfo/{token} | Read the billing information (company name, address, phone, vat ID) -*AdminApi* | [**charge**](docs/AdminApi.md#charge) | **POST** /api2/json/charge | Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. -*AdminApi* | [**corporateKey**](docs/AdminApi.md#corporateKey) | **GET** /api2/json/corporateKey/{apiKey}/{corporate} | Setting an API Key to a corporate status. -*AdminApi* | [**debugLevel**](docs/AdminApi.md#debugLevel) | **GET** /api2/json/debugLevel/{logger}/{level} | Update debug level for a classifier -*AdminApi* | [**flush**](docs/AdminApi.md#flush) | **GET** /api2/json/flush | Flush counters. -*AdminApi* | [**invalidateCache**](docs/AdminApi.md#invalidateCache) | **GET** /api2/json/invalidateCache | Invalidate system caches. +*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* | [**namsorCounter**](docs/AdminApi.md#namsorCounter) | **GET** /api2/json/namsorCounter | Get the overall API counter -*AdminApi* | [**paymentInfo**](docs/AdminApi.md#paymentInfo) | **GET** /api2/json/paymentInfo/{token} | Get the Stripe payment information associated with the current google auth session token. -*AdminApi* | [**procureKey**](docs/AdminApi.md#procureKey) | **GET** /api2/json/procureKey/{token} | Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. -*AdminApi* | [**removeUserAccount**](docs/AdminApi.md#removeUserAccount) | **GET** /api2/json/removeUserAccount/{token} | Remove the user account. -*AdminApi* | [**removeUserAccountOnBehalf**](docs/AdminApi.md#removeUserAccountOnBehalf) | **GET** /api2/json/removeUserAccountOnBehalf/{apiKey} | Remove (on behalf) a user account. -*AdminApi* | [**shutdown**](docs/AdminApi.md#shutdown) | **GET** /api2/json/shutdown | Stop learning and shutdown system. *AdminApi* | [**softwareVersion**](docs/AdminApi.md#softwareVersion) | **GET** /api2/json/softwareVersion | Get the current software version -*AdminApi* | [**sourceStats**](docs/AdminApi.md#sourceStats) | **GET** /api2/json/sourceStats/{source} | Print basic source statistics. -*AdminApi* | [**stats**](docs/AdminApi.md#stats) | **GET** /api2/json/stats | Print basic system statistics. -*AdminApi* | [**stripeConnect**](docs/AdminApi.md#stripeConnect) | **GET** /api2/json/stripeConnect | Connects a Stripe Account. -*AdminApi* | [**subscribePlan**](docs/AdminApi.md#subscribePlan) | **GET** /api2/json/subscribePlan/{planName}/{token} | Subscribe to a give API plan, using the user's preferred or default currency. -*AdminApi* | [**subscribePlanOnBehalf**](docs/AdminApi.md#subscribePlanOnBehalf) | **GET** /api2/json/subscribePlanOnBehalf/{planName}/{apiKey} | Subscribe to a give API plan, using the user's preferred or default currency (admin only). *AdminApi* | [**taxonomyClasses**](docs/AdminApi.md#taxonomyClasses) | **GET** /api2/json/taxonomyClasses/{classifierName} | Print the taxonomy classes valid for the given classifier. -*AdminApi* | [**updateBillingInfo**](docs/AdminApi.md#updateBillingInfo) | **POST** /api2/json/updateBillingInfo/{token} | Sets or update the billing information (company name, address, phone, vat ID) -*AdminApi* | [**updateLimit**](docs/AdminApi.md#updateLimit) | **GET** /api2/json/updateLimit/{usageLimit}/{hardOrSoft}/{token} | Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). -*AdminApi* | [**updatePaymentDefault**](docs/AdminApi.md#updatePaymentDefault) | **GET** /api2/json/updatePaymentDefault/{defautSourceId}/{token} | Update the default Stripe card associated with the current google auth session token. -*AdminApi* | [**userInfo**](docs/AdminApi.md#userInfo) | **GET** /api2/json/userInfo/{token} | Get the user profile associated with the current google auth session token. -*AdminApi* | [**verifyEmail**](docs/AdminApi.md#verifyEmail) | **GET** /api2/json/verifyEmail/{emailToken} | Verifies an email, based on token sent to that email -*AdminApi* | [**verifyRemoveEmail**](docs/AdminApi.md#verifyRemoveEmail) | **GET** /api2/json/verifyRemoveEmail/{emailToken} | Verifies an email, based on token sent to that email -*AdminApi* | [**vet**](docs/AdminApi.md#vet) | **GET** /api2/json/vetting/{source}/{vetted} | Vetting of a source. *ChineseApi* | [**chineseNameCandidates**](docs/ChineseApi.md#chineseNameCandidates) | **GET** /api2/json/chineseNameCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin} | Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming *ChineseApi* | [**chineseNameCandidatesBatch**](docs/ChineseApi.md#chineseNameCandidatesBatch) | **POST** /api2/json/chineseNameCandidatesBatch | Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname), ex. Wang Xiaoming *ChineseApi* | [**chineseNameCandidatesGenderBatch**](docs/ChineseApi.md#chineseNameCandidatesGenderBatch) | **POST** /api2/json/chineseNameCandidatesGenderBatch | Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname) ex. Wang Xiaoming. @@ -205,8 +175,6 @@ Class | Method | HTTP request | Description *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* | [**parsedGenderBatch**](docs/PersonalApi.md#parsedGenderBatch) | **POST** /api2/json/parsedGenderBatch | Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. -*PersonalApi* | [**parsedGenderGeoBatch**](docs/PersonalApi.md#parsedGenderGeoBatch) | **POST** /api2/json/parsedGenderGeoBatch | Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. *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). @@ -227,12 +195,11 @@ Class | Method | HTTP request | Description - [APICounterV2Out](docs/APICounterV2Out.md) - [APIKeyOut](docs/APIKeyOut.md) - [APIPeriodUsageOut](docs/APIPeriodUsageOut.md) - - [APIPlanOut](docs/APIPlanOut.md) - [APIPlanSubscriptionOut](docs/APIPlanSubscriptionOut.md) - - [APIPlansOut](docs/APIPlansOut.md) - [APIServiceOut](docs/APIServiceOut.md) - [APIServicesOut](docs/APIServicesOut.md) - [APIUsageAggregatedOut](docs/APIUsageAggregatedOut.md) + - [APIUsageHistoryOut](docs/APIUsageHistoryOut.md) - [BatchCorridorIn](docs/BatchCorridorIn.md) - [BatchCorridorOut](docs/BatchCorridorOut.md) - [BatchFirstLastNameDiasporaedOut](docs/BatchFirstLastNameDiasporaedOut.md) @@ -251,22 +218,14 @@ Class | Method | HTTP request | Description - [BatchNameIn](docs/BatchNameIn.md) - [BatchNameMatchCandidatesOut](docs/BatchNameMatchCandidatesOut.md) - [BatchNameMatchedOut](docs/BatchNameMatchedOut.md) - - [BatchParsedFullNameGeoIn](docs/BatchParsedFullNameGeoIn.md) - - [BatchParsedFullNameIn](docs/BatchParsedFullNameIn.md) - [BatchPersonalNameGenderedOut](docs/BatchPersonalNameGenderedOut.md) - [BatchPersonalNameGeoIn](docs/BatchPersonalNameGeoIn.md) - [BatchPersonalNameGeoOut](docs/BatchPersonalNameGeoOut.md) - [BatchPersonalNameIn](docs/BatchPersonalNameIn.md) - [BatchPersonalNameParsedOut](docs/BatchPersonalNameParsedOut.md) - [BatchProperNounCategorizedOut](docs/BatchProperNounCategorizedOut.md) - - [BillingHistoryOut](docs/BillingHistoryOut.md) - - [BillingInfoInOut](docs/BillingInfoInOut.md) - - [CacheMetricsOut](docs/CacheMetricsOut.md) - - [ClassifierMetricsOut](docs/ClassifierMetricsOut.md) - [CorridorIn](docs/CorridorIn.md) - [CorridorOut](docs/CorridorOut.md) - - [CurrenciesOut](docs/CurrenciesOut.md) - - [ExpectedClassMetricsOut](docs/ExpectedClassMetricsOut.md) - [FeedbackLoopOut](docs/FeedbackLoopOut.md) - [FirstLastNameDiasporaedOut](docs/FirstLastNameDiasporaedOut.md) - [FirstLastNameGenderIn](docs/FirstLastNameGenderIn.md) @@ -280,32 +239,19 @@ Class | Method | HTTP request | Description - [FirstLastNamePhoneNumberGeoIn](docs/FirstLastNamePhoneNumberGeoIn.md) - [FirstLastNamePhoneNumberIn](docs/FirstLastNamePhoneNumberIn.md) - [FirstLastNameUSRaceEthnicityOut](docs/FirstLastNameUSRaceEthnicityOut.md) - - [InlineObject](docs/InlineObject.md) - - [InvoiceItemOut](docs/InvoiceItemOut.md) - - [InvoiceOut](docs/InvoiceOut.md) - [MatchPersonalFirstLastNameIn](docs/MatchPersonalFirstLastNameIn.md) - - [NamSorCounterOut](docs/NamSorCounterOut.md) - [NameGeoIn](docs/NameGeoIn.md) - [NameIn](docs/NameIn.md) - [NameMatchCandidateOut](docs/NameMatchCandidateOut.md) - [NameMatchCandidatesOut](docs/NameMatchCandidatesOut.md) - [NameMatchedOut](docs/NameMatchedOut.md) - - [ParsedFullNameGeoIn](docs/ParsedFullNameGeoIn.md) - - [ParsedFullNameIn](docs/ParsedFullNameIn.md) - [PersonalNameGenderedOut](docs/PersonalNameGenderedOut.md) - [PersonalNameGeoIn](docs/PersonalNameGeoIn.md) - [PersonalNameGeoOut](docs/PersonalNameGeoOut.md) - [PersonalNameIn](docs/PersonalNameIn.md) - [PersonalNameParsedOut](docs/PersonalNameParsedOut.md) - [ProperNounCategorizedOut](docs/ProperNounCategorizedOut.md) - - [RomanizedNameOut](docs/RomanizedNameOut.md) - [SoftwareVersionOut](docs/SoftwareVersionOut.md) - - [SourceDetailedMetricsOut](docs/SourceDetailedMetricsOut.md) - - [SourceMetricsOut](docs/SourceMetricsOut.md) - - [StripeCardOut](docs/StripeCardOut.md) - - [StripeCustomerOut](docs/StripeCustomerOut.md) - - [SystemMetricsOut](docs/SystemMetricsOut.md) - - [UserInfoOut](docs/UserInfoOut.md) ## Documentation for Authorization diff --git a/build.gradle b/build.gradle index 7a455c0d..e34e49d1 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'com.namsor' -version = '2.0.14' +version = '2.0.15' buildscript { repositories { diff --git a/build.sbt b/build.sbt index 96463f74..d79bb346 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.14", + version := "2.0.15", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/docs/APIBillingPeriodUsageOut.md b/docs/APIBillingPeriodUsageOut.md index 20feabb2..436fc7e9 100644 --- a/docs/APIBillingPeriodUsageOut.md +++ b/docs/APIBillingPeriodUsageOut.md @@ -4,16 +4,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**apiKey** | **String** | | [optional] -**subscriptionStarted** | **Long** | | [optional] -**periodStarted** | **Long** | | [optional] -**periodEnded** | **Long** | | [optional] -**stripeCurrentPeriodEnd** | **Long** | | [optional] -**stripeCurrentPeriodStart** | **Long** | | [optional] -**billingStatus** | **String** | | [optional] -**usage** | **Long** | | [optional] -**softLimit** | **Long** | | [optional] -**hardLimit** | **Long** | | [optional] +**apiKey** | **String** | User API Key. | [optional] +**subscriptionStarted** | **Long** | Datetime when the user subscribed to the plan. | [optional] +**periodStarted** | **Long** | Datetime when the the plan's current period started. | [optional] +**periodEnded** | **Long** | Datetime when the the plan's current period endend. | [optional] +**stripeCurrentPeriodEnd** | **Long** | Datetime when the the plan's current period endend (in Stripe). Internal and Stripe periodicity should ~coincide. | [optional] +**stripeCurrentPeriodStart** | **Long** | Datetime when the the plan's current period started (in Stripe). Internal and Stripe periodicity should ~coincide. | [optional] +**billingStatus** | **String** | Current period billing status ex OPEN. | [optional] +**usage** | **Long** | Current period usage in units (NB some API endpoints use more than one unit). | [optional] +**softLimit** | **Long** | Current period soft limit (reaching the limit sends an email notification). | [optional] +**hardLimit** | **Long** | Current period hard limit (reaching the limit sends an email notification and blocks the API Key). | [optional] diff --git a/docs/APIClassifierOut.md b/docs/APIClassifierOut.md index 2a4fa8fb..cd5233ad 100644 --- a/docs/APIClassifierOut.md +++ b/docs/APIClassifierOut.md @@ -4,11 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classifierName** | **String** | | [optional] -**serving** | **Boolean** | | [optional] -**learning** | **Boolean** | | [optional] -**shuttingDown** | **Boolean** | | [optional] -**probabilityCalibrated** | **Boolean** | | [optional] +**classifierName** | **String** | The classifier name | [optional] +**serving** | **Boolean** | True if the classifier is serving requests (has reached minimal learning, is not shutting down) | [optional] +**learning** | **Boolean** | True if the classifier is learning | [optional] +**shuttingDown** | **Boolean** | True if the classifier is shutting down | [optional] +**probabilityCalibrated** | **Boolean** | True if the classifier has finished the initial learning and calibrated probabilities (meanwhile, during initial learning, probabilities will be equal to -1) | [optional] diff --git a/docs/APIClassifierTaxonomyOut.md b/docs/APIClassifierTaxonomyOut.md index 75f03b88..778c1cde 100644 --- a/docs/APIClassifierTaxonomyOut.md +++ b/docs/APIClassifierTaxonomyOut.md @@ -4,8 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classifierName** | **String** | | [optional] -**taxonomyClasses** | **List<String>** | | [optional] +**classifierName** | **String** | Name of the classifier as per apiStatus (corresponds also to the name of the service in apiServices) | [optional] +**taxonomyClasses** | **List<String>** | The taxonomy classes this classifier classifies to | [optional] diff --git a/docs/APIClassifiersStatusOut.md b/docs/APIClassifiersStatusOut.md index 41f77e2e..f5226e51 100644 --- a/docs/APIClassifiersStatusOut.md +++ b/docs/APIClassifiersStatusOut.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **softwareVersion** | [**SoftwareVersionOut**](SoftwareVersionOut.md) | | [optional] -**classifiers** | [**List<APIClassifierOut>**](APIClassifierOut.md) | | [optional] +**classifiers** | [**List<APIClassifierOut>**](APIClassifierOut.md) | The list of classifiers and versions. | [optional] diff --git a/docs/APICounterV2Out.md b/docs/APICounterV2Out.md index bb4f41f9..b392fcde 100644 --- a/docs/APICounterV2Out.md +++ b/docs/APICounterV2Out.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiKey** | [**APIKeyOut**](APIKeyOut.md) | | [optional] -**apiService** | **String** | | [optional] -**createdDateTime** | **Long** | | [optional] -**totalUsage** | **Long** | | [optional] -**lastFlushedDateTime** | **Long** | | [optional] -**lastUsedDateTime** | **Long** | | [optional] -**serviceFeaturesUsage** | **Map<String, Long>** | | [optional] +**apiService** | **String** | The apiService corresponds to the classifier name. | [optional] +**createdDateTime** | **Long** | The create datetime of the counter. | [optional] +**totalUsage** | **Long** | The usage of the counter. | [optional] +**lastFlushedDateTime** | **Long** | The flush datetime of the counter. | [optional] +**lastUsedDateTime** | **Long** | The last usage datetime of the counter. | [optional] +**serviceFeaturesUsage** | **Map<String, Long>** | Usage of special features, such as Chinese, Japanese. | [optional] diff --git a/docs/APIKeyOut.md b/docs/APIKeyOut.md index 282c2099..f14ca386 100644 --- a/docs/APIKeyOut.md +++ b/docs/APIKeyOut.md @@ -4,16 +4,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**apiKey** | **String** | | [optional] -**userId** | **String** | | [optional] -**admin** | **Boolean** | | [optional] -**vetted** | **Boolean** | | [optional] -**learnable** | **Boolean** | | [optional] -**anonymized** | **Boolean** | | [optional] -**partner** | **Boolean** | | [optional] -**striped** | **Boolean** | | [optional] -**corporate** | **Boolean** | | [optional] -**disabled** | **Boolean** | | [optional] +**apiKey** | **String** | The user API Key. | [optional] +**userId** | **String** | The user identifier. | [optional] +**admin** | **Boolean** | The API Key has admin role. | [optional] +**vetted** | **Boolean** | The API Key is vetted (assumed truthful) for machine learning. | [optional] +**learnable** | **Boolean** | The API Key is learnable (without assuming truthfulness) for machine learning. Set learnable=false and anonymized=true for highest privacy (ie. to forget data as it's processed). | [optional] +**anonymized** | **Boolean** | The API Key is anonymized (using SHA-252 digest for logging). Set learnable=false and anonymized=true for highest privacy (ie. to forget data as it's processed). | [optional] +**partner** | **Boolean** | The API Key has partner role. | [optional] +**striped** | **Boolean** | The API Key is associated to a valid Stripe account. | [optional] +**corporate** | **Boolean** | The API Key has role corporate (ex SWIFT payments instead of Stripe payments). | [optional] +**disabled** | **Boolean** | The API Key is temporarily or permanently disabled. | [optional] diff --git a/docs/APIPeriodUsageOut.md b/docs/APIPeriodUsageOut.md index d9c2f951..10d147d1 100644 --- a/docs/APIPeriodUsageOut.md +++ b/docs/APIPeriodUsageOut.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **subscription** | [**APIPlanSubscriptionOut**](APIPlanSubscriptionOut.md) | | [optional] **billingPeriod** | [**APIBillingPeriodUsageOut**](APIBillingPeriodUsageOut.md) | | [optional] -**overageExclTax** | **Double** | | [optional] -**overageInclTax** | **Double** | | [optional] -**overageCurrency** | **String** | | [optional] -**overageQuantity** | **Long** | | [optional] +**overageExclTax** | **Double** | Overage amount including any tax. | [optional] +**overageInclTax** | **Double** | Overage amount including tax (if applicable). | [optional] +**overageCurrency** | **String** | Currency of the overage amount. | [optional] +**overageQuantity** | **Long** | Quantity above monthly quota of the current subscritpion, in units. | [optional] diff --git a/docs/APIPlanSubscriptionOut.md b/docs/APIPlanSubscriptionOut.md index ec83d002..43503c3f 100644 --- a/docs/APIPlanSubscriptionOut.md +++ b/docs/APIPlanSubscriptionOut.md @@ -4,25 +4,25 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**apiKey** | **String** | | [optional] -**planStarted** | **Long** | | [optional] -**priorPlanStarted** | **Long** | | [optional] -**planEnded** | **Long** | | [optional] -**taxRate** | **Double** | | [optional] -**planName** | **String** | | [optional] -**planBaseFeesKey** | **String** | | [optional] -**planStatus** | **String** | | [optional] -**planQuota** | **Long** | | [optional] -**priceUSD** | **Double** | | [optional] -**priceOverageUSD** | **Double** | | [optional] -**price** | **Double** | | [optional] -**priceOverage** | **Double** | | [optional] -**currency** | **String** | | [optional] -**currencyFactor** | **Double** | | [optional] -**stripeCustomerId** | **String** | | [optional] -**stripeStatus** | **String** | | [optional] -**stripeSubscription** | **String** | | [optional] -**userId** | **String** | | [optional] +**apiKey** | **String** | User API Key. | [optional] +**planStarted** | **Long** | Datetime when the user subscribed to the current plan. | [optional] +**priorPlanStarted** | **Long** | Datetime when the user subscribed to the prior plan. | [optional] +**planEnded** | **Long** | Datetime when the user ended the plan. | [optional] +**taxRate** | **Double** | Applicable tax rate for the plan. | [optional] +**planName** | **String** | Current plan name. | [optional] +**planBaseFeesKey** | **String** | Current plan key (as in Stripe product). | [optional] +**planStatus** | **String** | Plan status. | [optional] +**planQuota** | **Long** | Current plan quota in quantity of units (NB: some API use several units per name). | [optional] +**priceUSD** | **Double** | Current plan monthly price expressed in USD (includes a free quota). | [optional] +**priceOverageUSD** | **Double** | Current plan price for overages expressed in USD (extra price per unit above the free quota). | [optional] +**price** | **Double** | Current plan price for overages expressed in Currency (extra price per unit above the free quota). | [optional] +**priceOverage** | **Double** | Current plan price for overages expressed in Currency (extra price per unit above the free quota). | [optional] +**currency** | **String** | Current plan Currency for prices. | [optional] +**currencyFactor** | **Double** | For USD, GBP, EUR - the factor is 1. | [optional] +**stripeCustomerId** | **String** | Stripe customer identifier. | [optional] +**stripeStatus** | **String** | Stripe status ex active. | [optional] +**stripeSubscription** | **String** | Stripe subscription identifier. | [optional] +**userId** | **String** | Internal user identifier. | [optional] diff --git a/docs/APIServiceOut.md b/docs/APIServiceOut.md index 40898eab..fa44406c 100644 --- a/docs/APIServiceOut.md +++ b/docs/APIServiceOut.md @@ -4,9 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**serviceName** | **String** | | [optional] -**serviceGroup** | **String** | | [optional] -**costInUnits** | **Integer** | | [optional] +**serviceName** | **String** | A service name corresponds to classifier name in apiStatus (ex. personalname_gender or personalfullname_gender) | [optional] +**serviceGroup** | **String** | Groups together classifiers providing a similar service (ex. gender groups personalname_gender and personalfullname_gender) | [optional] +**costInUnits** | **Integer** | Indicates how many units per call this service costs (ex. the number of units per name) | [optional] diff --git a/docs/APIServicesOut.md b/docs/APIServicesOut.md index 1f9aa05c..e0639137 100644 --- a/docs/APIServicesOut.md +++ b/docs/APIServicesOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**apiServices** | [**List<APIServiceOut>**](APIServiceOut.md) | | [optional] +**apiServices** | [**List<APIServiceOut>**](APIServiceOut.md) | List of API Services | [optional] diff --git a/docs/APIUsageAggregatedOut.md b/docs/APIUsageAggregatedOut.md index f52b6b1f..6fb88370 100644 --- a/docs/APIUsageAggregatedOut.md +++ b/docs/APIUsageAggregatedOut.md @@ -4,14 +4,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**timeUnit** | **String** | | [optional] -**periodStart** | **Long** | | [optional] -**periodEnd** | **Long** | | [optional] -**totalUsage** | **Long** | | [optional] -**historyTruncated** | **Boolean** | | [optional] -**data** | [**List<List<Integer>>**](List.md) | | [optional] -**colHeaders** | **List<String>** | | [optional] -**rowHeaders** | **List<String>** | | [optional] +**timeUnit** | **String** | Time unit is DAY, WEEK or MONTH depending on prior usage | [optional] +**periodStart** | **Long** | Start datetime of the reporting period | [optional] +**periodEnd** | **Long** | End datetime of the reporting period | [optional] +**totalUsage** | **Long** | Total usage in the current period | [optional] +**historyTruncated** | **Boolean** | If the history was truncaded due to data limit | [optional] +**data** | [**List<List<Integer>>**](List.md) | Data points : usage per DAY, WEEK or MONTH and per apiService | [optional] +**colHeaders** | **List<String>** | apiServices as column headers | [optional] +**rowHeaders** | **List<String>** | dates as row headers | [optional] diff --git a/docs/APIUsageHistoryOut.md b/docs/APIUsageHistoryOut.md new file mode 100644 index 00000000..e3e72197 --- /dev/null +++ b/docs/APIUsageHistoryOut.md @@ -0,0 +1,10 @@ + +# APIUsageHistoryOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**detailedUsage** | [**List<APICounterV2Out>**](APICounterV2Out.md) | Detailed usage as reported by the deduplicating API counter. | [optional] + + + diff --git a/docs/AdminApi.md b/docs/AdminApi.md index c0cca15f..6bf5d0e7 100644 --- a/docs/AdminApi.md +++ b/docs/AdminApi.md @@ -4,103 +4,18 @@ All URIs are relative to *https://v2.namsor.com/NamSorAPIv2* Method | HTTP request | Description ------------- | ------------- | ------------- -[**addCredits**](AdminApi.md#addCredits) | **GET** /api2/json/addCredits/{apiKey}/{usageCredits}/{userMessage} | Add usage credits to an API Key. [**anonymize**](AdminApi.md#anonymize) | **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. +[**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. [**apiUsageHistoryAggregate**](AdminApi.md#apiUsageHistoryAggregate) | **GET** /api2/json/apiUsageHistoryAggregate | Print historical API usage (in an aggregated view, by service, by day/hour/min). -[**availablePlans**](AdminApi.md#availablePlans) | **GET** /api2/json/availablePlans/{token} | List all available plans in the user's preferred currency. -[**availablePlans1**](AdminApi.md#availablePlans1) | **GET** /api2/json/availablePlans | List all available plans in the default currency (usd). -[**availableServices**](AdminApi.md#availableServices) | **GET** /api2/json/apiServices | List of API services and usage cost in Units (default is 1=ONE Unit). -[**billingCurrencies**](AdminApi.md#billingCurrencies) | **GET** /api2/json/billingCurrencies | List possible currency options for billing (USD, EUR, GBP, ...) -[**billingHistory**](AdminApi.md#billingHistory) | **GET** /api2/json/billingHistory/{token} | Read the history billing information (invoices paid via Stripe or manually). -[**billingInfo**](AdminApi.md#billingInfo) | **GET** /api2/json/billingInfo/{token} | Read the billing information (company name, address, phone, vat ID) -[**charge**](AdminApi.md#charge) | **POST** /api2/json/charge | Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. -[**corporateKey**](AdminApi.md#corporateKey) | **GET** /api2/json/corporateKey/{apiKey}/{corporate} | Setting an API Key to a corporate status. -[**debugLevel**](AdminApi.md#debugLevel) | **GET** /api2/json/debugLevel/{logger}/{level} | Update debug level for a classifier -[**flush**](AdminApi.md#flush) | **GET** /api2/json/flush | Flush counters. -[**invalidateCache**](AdminApi.md#invalidateCache) | **GET** /api2/json/invalidateCache | Invalidate system caches. +[**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. -[**namsorCounter**](AdminApi.md#namsorCounter) | **GET** /api2/json/namsorCounter | Get the overall API counter -[**paymentInfo**](AdminApi.md#paymentInfo) | **GET** /api2/json/paymentInfo/{token} | Get the Stripe payment information associated with the current google auth session token. -[**procureKey**](AdminApi.md#procureKey) | **GET** /api2/json/procureKey/{token} | Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. -[**removeUserAccount**](AdminApi.md#removeUserAccount) | **GET** /api2/json/removeUserAccount/{token} | Remove the user account. -[**removeUserAccountOnBehalf**](AdminApi.md#removeUserAccountOnBehalf) | **GET** /api2/json/removeUserAccountOnBehalf/{apiKey} | Remove (on behalf) a user account. -[**shutdown**](AdminApi.md#shutdown) | **GET** /api2/json/shutdown | Stop learning and shutdown system. [**softwareVersion**](AdminApi.md#softwareVersion) | **GET** /api2/json/softwareVersion | Get the current software version -[**sourceStats**](AdminApi.md#sourceStats) | **GET** /api2/json/sourceStats/{source} | Print basic source statistics. -[**stats**](AdminApi.md#stats) | **GET** /api2/json/stats | Print basic system statistics. -[**stripeConnect**](AdminApi.md#stripeConnect) | **GET** /api2/json/stripeConnect | Connects a Stripe Account. -[**subscribePlan**](AdminApi.md#subscribePlan) | **GET** /api2/json/subscribePlan/{planName}/{token} | Subscribe to a give API plan, using the user's preferred or default currency. -[**subscribePlanOnBehalf**](AdminApi.md#subscribePlanOnBehalf) | **GET** /api2/json/subscribePlanOnBehalf/{planName}/{apiKey} | Subscribe to a give API plan, using the user's preferred or default currency (admin only). [**taxonomyClasses**](AdminApi.md#taxonomyClasses) | **GET** /api2/json/taxonomyClasses/{classifierName} | Print the taxonomy classes valid for the given classifier. -[**updateBillingInfo**](AdminApi.md#updateBillingInfo) | **POST** /api2/json/updateBillingInfo/{token} | Sets or update the billing information (company name, address, phone, vat ID) -[**updateLimit**](AdminApi.md#updateLimit) | **GET** /api2/json/updateLimit/{usageLimit}/{hardOrSoft}/{token} | Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). -[**updatePaymentDefault**](AdminApi.md#updatePaymentDefault) | **GET** /api2/json/updatePaymentDefault/{defautSourceId}/{token} | Update the default Stripe card associated with the current google auth session token. -[**userInfo**](AdminApi.md#userInfo) | **GET** /api2/json/userInfo/{token} | Get the user profile associated with the current google auth session token. -[**verifyEmail**](AdminApi.md#verifyEmail) | **GET** /api2/json/verifyEmail/{emailToken} | Verifies an email, based on token sent to that email -[**verifyRemoveEmail**](AdminApi.md#verifyRemoveEmail) | **GET** /api2/json/verifyRemoveEmail/{emailToken} | Verifies an email, based on token sent to that email -[**vet**](AdminApi.md#vet) | **GET** /api2/json/vetting/{source}/{vetted} | Vetting of a source. - -# **addCredits** -> SystemMetricsOut addCredits(apiKey, usageCredits, userMessage) - -Add usage credits to an API Key. - -### 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 apiKey = "apiKey_example"; // String | -Long usageCredits = 56L; // Long | -String userMessage = "userMessage_example"; // String | -try { - SystemMetricsOut result = apiInstance.addCredits(apiKey, usageCredits, userMessage); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#addCredits"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiKey** | **String**| | - **usageCredits** | **Long**| | - **userMessage** | **String**| | - -### Return type - -[**SystemMetricsOut**](SystemMetricsOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - # **anonymize** > anonymize(source, anonymized) @@ -157,9 +72,9 @@ null (empty response body) # **apiStatus** -> APIPlansOut apiStatus() +> APIClassifiersStatusOut apiStatus() -Prints the current status of the classifiers. +Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices. ### Example ```java @@ -180,7 +95,7 @@ api_key.setApiKey("YOUR API KEY"); AdminApi apiInstance = new AdminApi(); try { - APIPlansOut result = apiInstance.apiStatus(); + APIClassifiersStatusOut result = apiInstance.apiStatus(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AdminApi#apiStatus"); @@ -193,7 +108,7 @@ This endpoint does not need any parameter. ### Return type -[**APIPlansOut**](APIPlansOut.md) +[**APIClassifiersStatusOut**](APIClassifiersStatusOut.md) ### Authorization @@ -255,7 +170,7 @@ This endpoint does not need any parameter. # **apiUsageHistory** -> APIPeriodUsageOut apiUsageHistory() +> APIUsageHistoryOut apiUsageHistory() Print historical API usage. @@ -278,7 +193,7 @@ api_key.setApiKey("YOUR API KEY"); AdminApi apiInstance = new AdminApi(); try { - APIPeriodUsageOut result = apiInstance.apiUsageHistory(); + APIUsageHistoryOut result = apiInstance.apiUsageHistory(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AdminApi#apiUsageHistory"); @@ -291,7 +206,7 @@ This endpoint does not need any parameter. ### Return type -[**APIPeriodUsageOut**](APIPeriodUsageOut.md) +[**APIUsageHistoryOut**](APIUsageHistoryOut.md) ### Authorization @@ -304,7 +219,7 @@ This endpoint does not need any parameter. # **apiUsageHistoryAggregate** -> APIPeriodUsageOut apiUsageHistoryAggregate() +> APIUsageAggregatedOut apiUsageHistoryAggregate() Print historical API usage (in an aggregated view, by service, by day/hour/min). @@ -327,7 +242,7 @@ api_key.setApiKey("YOUR API KEY"); AdminApi apiInstance = new AdminApi(); try { - APIPeriodUsageOut result = apiInstance.apiUsageHistoryAggregate(); + APIUsageAggregatedOut result = apiInstance.apiUsageHistoryAggregate(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AdminApi#apiUsageHistoryAggregate"); @@ -340,109 +255,7 @@ This endpoint does not need any parameter. ### Return type -[**APIPeriodUsageOut**](APIPeriodUsageOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **availablePlans** -> APIPlansOut availablePlans(token) - -List all available plans in the user's preferred currency. - -### 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 token = "token_example"; // String | -try { - APIPlansOut result = apiInstance.availablePlans(token); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#availablePlans"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **token** | **String**| | - -### Return type - -[**APIPlansOut**](APIPlansOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **availablePlans1** -> APIPlansOut availablePlans1() - -List all available plans in the default currency (usd). - -### 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(); -try { - APIPlansOut result = apiInstance.availablePlans1(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#availablePlans1"); - e.printStackTrace(); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**APIPlansOut**](APIPlansOut.md) +[**APIUsageAggregatedOut**](APIUsageAggregatedOut.md) ### Authorization @@ -455,9 +268,9 @@ This endpoint does not need any parameter. # **availableServices** -> APIPlansOut availableServices() +> APIServicesOut availableServices() -List of API services and usage cost in Units (default is 1=ONE Unit). +List of classification services and usage cost in Units per classification (default is 1=ONE Unit). Some API endpoints (ex. Corridor) combine multiple classifiers. ### Example ```java @@ -478,7 +291,7 @@ api_key.setApiKey("YOUR API KEY"); AdminApi apiInstance = new AdminApi(); try { - APIPlansOut result = apiInstance.availableServices(); + APIServicesOut result = apiInstance.availableServices(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AdminApi#availableServices"); @@ -491,56 +304,7 @@ This endpoint does not need any parameter. ### Return type -[**APIPlansOut**](APIPlansOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **billingCurrencies** -> CurrenciesOut billingCurrencies() - -List possible currency options for billing (USD, EUR, GBP, ...) - -### 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(); -try { - CurrenciesOut result = apiInstance.billingCurrencies(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#billingCurrencies"); - e.printStackTrace(); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**CurrenciesOut**](CurrenciesOut.md) +[**APIServicesOut**](APIServicesOut.md) ### Authorization @@ -551,11 +315,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json - -# **billingHistory** -> BillingHistoryOut billingHistory(token) + +# **disable** +> disable(source, disabled) -Read the history billing information (invoices paid via Stripe or manually). +Activate/deactivate an API Key. ### Example ```java @@ -575,12 +339,12 @@ api_key.setApiKey("YOUR API KEY"); //api_key.setApiKeyPrefix("Token"); AdminApi apiInstance = new AdminApi(); -String token = "token_example"; // String | +String source = "source_example"; // String | The API Key to set as enabled/disabled. +Boolean disabled = true; // Boolean | try { - BillingHistoryOut result = apiInstance.billingHistory(token); - System.out.println(result); + apiInstance.disable(source, disabled); } catch (ApiException e) { - System.err.println("Exception when calling AdminApi#billingHistory"); + System.err.println("Exception when calling AdminApi#disable"); e.printStackTrace(); } ``` @@ -589,11 +353,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **token** | **String**| | + **source** | **String**| The API Key to set as enabled/disabled. | + **disabled** | **Boolean**| | ### Return type -[**BillingHistoryOut**](BillingHistoryOut.md) +null (empty response body) ### Authorization @@ -602,13 +367,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: Not defined - -# **billingInfo** -> BillingInfoInOut billingInfo(token) + +# **learnable** +> learnable(source, learnable) -Read the billing information (company name, address, phone, vat ID) +Activate/deactivate learning from a source. ### Example ```java @@ -628,12 +393,12 @@ api_key.setApiKey("YOUR API KEY"); //api_key.setApiKeyPrefix("Token"); AdminApi apiInstance = new AdminApi(); -String token = "token_example"; // String | +String source = "source_example"; // String | The API Key to set as learnable/non learnable. +Boolean learnable = true; // Boolean | try { - BillingInfoInOut result = apiInstance.billingInfo(token); - System.out.println(result); + apiInstance.learnable(source, learnable); } catch (ApiException e) { - System.err.println("Exception when calling AdminApi#billingInfo"); + System.err.println("Exception when calling AdminApi#learnable"); e.printStackTrace(); } ``` @@ -642,11 +407,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **token** | **String**| | + **source** | **String**| The API Key to set as learnable/non learnable. | + **learnable** | **Boolean**| | ### Return type -[**BillingInfoInOut**](BillingInfoInOut.md) +null (empty response body) ### Authorization @@ -655,13 +421,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: Not defined - -# **charge** -> APIKeyOut charge(inlineObject) + +# **softwareVersion** +> SoftwareVersionOut softwareVersion() -Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. +Get the current software version ### Example ```java @@ -681,25 +447,21 @@ api_key.setApiKey("YOUR API KEY"); //api_key.setApiKeyPrefix("Token"); AdminApi apiInstance = new AdminApi(); -InlineObject inlineObject = new InlineObject(); // InlineObject | try { - APIKeyOut result = apiInstance.charge(inlineObject); + SoftwareVersionOut result = apiInstance.softwareVersion(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdminApi#charge"); + System.err.println("Exception when calling AdminApi#softwareVersion"); e.printStackTrace(); } ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **inlineObject** | [**InlineObject**](InlineObject.md)| | [optional] +This endpoint does not need any parameter. ### Return type -[**APIKeyOut**](APIKeyOut.md) +[**SoftwareVersionOut**](SoftwareVersionOut.md) ### Authorization @@ -710,65 +472,11 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json - -# **corporateKey** -> corporateKey(apiKey, corporate) - -Setting an API Key to a corporate status. - -### 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 apiKey = "apiKey_example"; // String | -Boolean corporate = true; // Boolean | -try { - apiInstance.corporateKey(apiKey, corporate); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#corporateKey"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiKey** | **String**| | - **corporate** | **Boolean**| | - -### Return type - -null (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -# **debugLevel** -> debugLevel(logger, level) + +# **taxonomyClasses** +> APIClassifierTaxonomyOut taxonomyClasses(classifierName) -Update debug level for a classifier +Print the taxonomy classes valid for the given classifier. ### Example ```java @@ -788,12 +496,12 @@ api_key.setApiKey("YOUR API KEY"); //api_key.setApiKeyPrefix("Token"); AdminApi apiInstance = new AdminApi(); -String logger = "logger_example"; // String | -String level = "level_example"; // String | +String classifierName = "classifierName_example"; // String | try { - apiInstance.debugLevel(logger, level); + APIClassifierTaxonomyOut result = apiInstance.taxonomyClasses(classifierName); + System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdminApi#debugLevel"); + System.err.println("Exception when calling AdminApi#taxonomyClasses"); e.printStackTrace(); } ``` @@ -802,1169 +510,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **logger** | **String**| | - **level** | **String**| | + **classifierName** | **String**| | ### Return type -null (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -# **flush** -> flush() - -Flush counters. - -### 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(); -try { - apiInstance.flush(); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#flush"); - e.printStackTrace(); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -null (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -# **invalidateCache** -> invalidateCache() - -Invalidate system caches. - -### 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(); -try { - apiInstance.invalidateCache(); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#invalidateCache"); - e.printStackTrace(); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -null (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -# **learnable** -> learnable(source, learnable) - -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 | -Boolean learnable = true; // Boolean | -try { - apiInstance.learnable(source, learnable); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#learnable"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **source** | **String**| | - **learnable** | **Boolean**| | - -### Return type - -null (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -# **namsorCounter** -> SoftwareVersionOut namsorCounter() - -Get the overall API counter - -### 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(); -try { - SoftwareVersionOut result = apiInstance.namsorCounter(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#namsorCounter"); - e.printStackTrace(); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SoftwareVersionOut**](SoftwareVersionOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **paymentInfo** -> APIKeyOut paymentInfo(token) - -Get the Stripe payment information associated with the current google auth session token. - -### 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 token = "token_example"; // String | -try { - APIKeyOut result = apiInstance.paymentInfo(token); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#paymentInfo"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **token** | **String**| | - -### Return type - -[**APIKeyOut**](APIKeyOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **procureKey** -> APIKeyOut procureKey(token) - -Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. - -### 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 token = "token_example"; // String | -try { - APIKeyOut result = apiInstance.procureKey(token); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#procureKey"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **token** | **String**| | - -### Return type - -[**APIKeyOut**](APIKeyOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **removeUserAccount** -> APIPlanSubscriptionOut removeUserAccount(token) - -Remove the user account. - -### 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 token = "token_example"; // String | -try { - APIPlanSubscriptionOut result = apiInstance.removeUserAccount(token); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#removeUserAccount"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **token** | **String**| | - -### Return type - -[**APIPlanSubscriptionOut**](APIPlanSubscriptionOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **removeUserAccountOnBehalf** -> APIPlanSubscriptionOut removeUserAccountOnBehalf(apiKey) - -Remove (on behalf) a user account. - -### 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 apiKey = "apiKey_example"; // String | -try { - APIPlanSubscriptionOut result = apiInstance.removeUserAccountOnBehalf(apiKey); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#removeUserAccountOnBehalf"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiKey** | **String**| | - -### Return type - -[**APIPlanSubscriptionOut**](APIPlanSubscriptionOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **shutdown** -> shutdown() - -Stop learning and shutdown system. - -### 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(); -try { - apiInstance.shutdown(); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#shutdown"); - e.printStackTrace(); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -null (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -# **softwareVersion** -> SoftwareVersionOut softwareVersion() - -Get the current software version - -### 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(); -try { - SoftwareVersionOut result = apiInstance.softwareVersion(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#softwareVersion"); - e.printStackTrace(); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SoftwareVersionOut**](SoftwareVersionOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **sourceStats** -> SystemMetricsOut sourceStats(source) - -Print basic source statistics. - -### 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 | -try { - SystemMetricsOut result = apiInstance.sourceStats(source); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#sourceStats"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **source** | **String**| | - -### Return type - -[**SystemMetricsOut**](SystemMetricsOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **stats** -> SystemMetricsOut stats() - -Print basic system statistics. - -### 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(); -try { - SystemMetricsOut result = apiInstance.stats(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#stats"); - e.printStackTrace(); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SystemMetricsOut**](SystemMetricsOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **stripeConnect** -> stripeConnect(scope, code, error, errorDescription) - -Connects a Stripe Account. - -### 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 scope = "scope_example"; // String | -String code = "code_example"; // String | -String error = "error_example"; // String | -String errorDescription = "errorDescription_example"; // String | -try { - apiInstance.stripeConnect(scope, code, error, errorDescription); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#stripeConnect"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **scope** | **String**| | [optional] - **code** | **String**| | [optional] - **error** | **String**| | [optional] - **errorDescription** | **String**| | [optional] - -### Return type - -null (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -# **subscribePlan** -> APIPlanSubscriptionOut subscribePlan(planName, token) - -Subscribe to a give API plan, using the user's preferred or default currency. - -### 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 planName = "planName_example"; // String | -String token = "token_example"; // String | -try { - APIPlanSubscriptionOut result = apiInstance.subscribePlan(planName, token); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#subscribePlan"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **planName** | **String**| | - **token** | **String**| | - -### Return type - -[**APIPlanSubscriptionOut**](APIPlanSubscriptionOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **subscribePlanOnBehalf** -> APIPlanSubscriptionOut subscribePlanOnBehalf(planName, apiKey) - -Subscribe to a give API plan, using the user's preferred or default currency (admin only). - -### 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 planName = "planName_example"; // String | -String apiKey = "apiKey_example"; // String | -try { - APIPlanSubscriptionOut result = apiInstance.subscribePlanOnBehalf(planName, apiKey); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#subscribePlanOnBehalf"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **planName** | **String**| | - **apiKey** | **String**| | - -### Return type - -[**APIPlanSubscriptionOut**](APIPlanSubscriptionOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **taxonomyClasses** -> APIPlansOut taxonomyClasses(classifierName) - -Print the taxonomy classes valid for the given classifier. - -### 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 classifierName = "classifierName_example"; // String | -try { - APIPlansOut result = apiInstance.taxonomyClasses(classifierName); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#taxonomyClasses"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **classifierName** | **String**| | - -### Return type - -[**APIPlansOut**](APIPlansOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **updateBillingInfo** -> BillingInfoInOut updateBillingInfo(token, billingInfoInOut) - -Sets or update the billing information (company name, address, phone, vat ID) - -### 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 token = "token_example"; // String | -BillingInfoInOut billingInfoInOut = new BillingInfoInOut(); // BillingInfoInOut | -try { - BillingInfoInOut result = apiInstance.updateBillingInfo(token, billingInfoInOut); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#updateBillingInfo"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **token** | **String**| | - **billingInfoInOut** | [**BillingInfoInOut**](BillingInfoInOut.md)| | [optional] - -### Return type - -[**BillingInfoInOut**](BillingInfoInOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/json;charset=UTF-8 - - **Accept**: application/json - - -# **updateLimit** -> APIPeriodUsageOut updateLimit(usageLimit, hardOrSoft, token) - -Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). - -### 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(); -Integer usageLimit = 56; // Integer | -Boolean hardOrSoft = true; // Boolean | -String token = "token_example"; // String | -try { - APIPeriodUsageOut result = apiInstance.updateLimit(usageLimit, hardOrSoft, token); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#updateLimit"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **usageLimit** | **Integer**| | - **hardOrSoft** | **Boolean**| | - **token** | **String**| | - -### Return type - -[**APIPeriodUsageOut**](APIPeriodUsageOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **updatePaymentDefault** -> APIKeyOut updatePaymentDefault(defautSourceId, token) - -Update the default Stripe card associated with the current google auth session token. - -### 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 defautSourceId = "defautSourceId_example"; // String | -String token = "token_example"; // String | -try { - APIKeyOut result = apiInstance.updatePaymentDefault(defautSourceId, token); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#updatePaymentDefault"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **defautSourceId** | **String**| | - **token** | **String**| | - -### Return type - -[**APIKeyOut**](APIKeyOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **userInfo** -> APIKeyOut userInfo(token) - -Get the user profile associated with the current google auth session token. - -### 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 token = "token_example"; // String | -try { - APIKeyOut result = apiInstance.userInfo(token); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#userInfo"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **token** | **String**| | - -### Return type - -[**APIKeyOut**](APIKeyOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **verifyEmail** -> APIKeyOut verifyEmail(emailToken) - -Verifies an email, based on token sent to that email - -### 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 emailToken = "emailToken_example"; // String | -try { - APIKeyOut result = apiInstance.verifyEmail(emailToken); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#verifyEmail"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **emailToken** | **String**| | - -### Return type - -[**APIKeyOut**](APIKeyOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **verifyRemoveEmail** -> APIKeyOut verifyRemoveEmail(emailToken) - -Verifies an email, based on token sent to that email - -### 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 emailToken = "emailToken_example"; // String | -try { - APIKeyOut result = apiInstance.verifyRemoveEmail(emailToken); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#verifyRemoveEmail"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **emailToken** | **String**| | - -### Return type - -[**APIKeyOut**](APIKeyOut.md) +[**APIClassifierTaxonomyOut**](APIClassifierTaxonomyOut.md) ### Authorization @@ -1975,57 +525,3 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json - -# **vet** -> vet(source, vetted) - -Vetting of 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 vetted = true; // Boolean | -try { - apiInstance.vet(source, vetted); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#vet"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **source** | **String**| | - **vetted** | **Boolean**| | - -### Return type - -null (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - diff --git a/docs/BatchCorridorOut.md b/docs/BatchCorridorOut.md index 956bc134..6d1da771 100644 --- a/docs/BatchCorridorOut.md +++ b/docs/BatchCorridorOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**corridorFromTo** | [**List<CorridorOut>**](CorridorOut.md) | | [optional] +**corridorFromTo** | [**List<CorridorOut>**](CorridorOut.md) | Classified corridors | [optional] diff --git a/docs/BatchFirstLastNameDiasporaedOut.md b/docs/BatchFirstLastNameDiasporaedOut.md index f62783e5..37bb2175 100644 --- a/docs/BatchFirstLastNameDiasporaedOut.md +++ b/docs/BatchFirstLastNameDiasporaedOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**personalNames** | [**List<FirstLastNameDiasporaedOut>**](FirstLastNameDiasporaedOut.md) | | [optional] +**personalNames** | [**List<FirstLastNameDiasporaedOut>**](FirstLastNameDiasporaedOut.md) | Classified diaspora names | [optional] diff --git a/docs/BatchFirstLastNameGenderedOut.md b/docs/BatchFirstLastNameGenderedOut.md index 23753712..6e007f30 100644 --- a/docs/BatchFirstLastNameGenderedOut.md +++ b/docs/BatchFirstLastNameGenderedOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**personalNames** | [**List<FirstLastNameGenderedOut>**](FirstLastNameGenderedOut.md) | | [optional] +**personalNames** | [**List<FirstLastNameGenderedOut>**](FirstLastNameGenderedOut.md) | Classified genderized names | [optional] diff --git a/docs/BatchFirstLastNameOriginedOut.md b/docs/BatchFirstLastNameOriginedOut.md index b879c5ca..ed810209 100644 --- a/docs/BatchFirstLastNameOriginedOut.md +++ b/docs/BatchFirstLastNameOriginedOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**personalNames** | [**List<FirstLastNameOriginedOut>**](FirstLastNameOriginedOut.md) | | [optional] +**personalNames** | [**List<FirstLastNameOriginedOut>**](FirstLastNameOriginedOut.md) | Classified origined names | [optional] diff --git a/docs/BatchFirstLastNamePhoneCodedOut.md b/docs/BatchFirstLastNamePhoneCodedOut.md index 03d21f70..e7469636 100644 --- a/docs/BatchFirstLastNamePhoneCodedOut.md +++ b/docs/BatchFirstLastNamePhoneCodedOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**personalNamesWithPhoneNumbers** | [**List<FirstLastNamePhoneCodedOut>**](FirstLastNamePhoneCodedOut.md) | | [optional] +**personalNamesWithPhoneNumbers** | [**List<FirstLastNamePhoneCodedOut>**](FirstLastNamePhoneCodedOut.md) | Classified phone-coded names | [optional] diff --git a/docs/BatchFirstLastNameUSRaceEthnicityOut.md b/docs/BatchFirstLastNameUSRaceEthnicityOut.md index a06b0bbb..18a2811c 100644 --- a/docs/BatchFirstLastNameUSRaceEthnicityOut.md +++ b/docs/BatchFirstLastNameUSRaceEthnicityOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**personalNames** | [**List<FirstLastNameUSRaceEthnicityOut>**](FirstLastNameUSRaceEthnicityOut.md) | | [optional] +**personalNames** | [**List<FirstLastNameUSRaceEthnicityOut>**](FirstLastNameUSRaceEthnicityOut.md) | Classified US 'race'/ethnicized names | [optional] diff --git a/docs/BatchNameMatchCandidatesOut.md b/docs/BatchNameMatchCandidatesOut.md index e14c4af8..0e63d6cb 100644 --- a/docs/BatchNameMatchCandidatesOut.md +++ b/docs/BatchNameMatchCandidatesOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**namesAndMatchCandidates** | [**List<NameMatchCandidatesOut>**](NameMatchCandidatesOut.md) | | [optional] +**namesAndMatchCandidates** | [**List<NameMatchCandidatesOut>**](NameMatchCandidatesOut.md) | Classified matched names | [optional] diff --git a/docs/BatchNameMatchedOut.md b/docs/BatchNameMatchedOut.md index 4348a70a..b27b925e 100644 --- a/docs/BatchNameMatchedOut.md +++ b/docs/BatchNameMatchedOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**matchedNames** | [**List<NameMatchedOut>**](NameMatchedOut.md) | | [optional] +**matchedNames** | [**List<NameMatchedOut>**](NameMatchedOut.md) | Classified matched names | [optional] diff --git a/docs/BatchPersonalNameGenderedOut.md b/docs/BatchPersonalNameGenderedOut.md index d9b60cc5..7ded002e 100644 --- a/docs/BatchPersonalNameGenderedOut.md +++ b/docs/BatchPersonalNameGenderedOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**personalNames** | [**List<PersonalNameGenderedOut>**](PersonalNameGenderedOut.md) | | [optional] +**personalNames** | [**List<PersonalNameGenderedOut>**](PersonalNameGenderedOut.md) | Classified genderized names | [optional] diff --git a/docs/BatchPersonalNameGeoOut.md b/docs/BatchPersonalNameGeoOut.md index 8a857694..974c5bef 100644 --- a/docs/BatchPersonalNameGeoOut.md +++ b/docs/BatchPersonalNameGeoOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**personalNames** | [**List<PersonalNameGeoOut>**](PersonalNameGeoOut.md) | | [optional] +**personalNames** | [**List<PersonalNameGeoOut>**](PersonalNameGeoOut.md) | Classified geo names | [optional] diff --git a/docs/BatchPersonalNameParsedOut.md b/docs/BatchPersonalNameParsedOut.md index d72a776b..4db2482e 100644 --- a/docs/BatchPersonalNameParsedOut.md +++ b/docs/BatchPersonalNameParsedOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**personalNames** | [**List<PersonalNameParsedOut>**](PersonalNameParsedOut.md) | | [optional] +**personalNames** | [**List<PersonalNameParsedOut>**](PersonalNameParsedOut.md) | Classified parsed names | [optional] diff --git a/docs/BatchProperNounCategorizedOut.md b/docs/BatchProperNounCategorizedOut.md index 6f46e0f9..e8ca4f16 100644 --- a/docs/BatchProperNounCategorizedOut.md +++ b/docs/BatchProperNounCategorizedOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**properNouns** | [**List<ProperNounCategorizedOut>**](ProperNounCategorizedOut.md) | | [optional] +**properNouns** | [**List<ProperNounCategorizedOut>**](ProperNounCategorizedOut.md) | Classified typed proper names | [optional] diff --git a/docs/ChineseApi.md b/docs/ChineseApi.md index 24ab2b9a..ea8b2e4f 100644 --- a/docs/ChineseApi.md +++ b/docs/ChineseApi.md @@ -22,7 +22,7 @@ Method | HTTP request | Description # **chineseNameCandidates** -> RomanizedNameOut chineseNameCandidates(chineseSurnameLatin, chineseGivenNameLatin) +> NameMatchCandidatesOut chineseNameCandidates(chineseSurnameLatin, chineseGivenNameLatin) Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming @@ -47,7 +47,7 @@ ChineseApi apiInstance = new ChineseApi(); String chineseSurnameLatin = "chineseSurnameLatin_example"; // String | String chineseGivenNameLatin = "chineseGivenNameLatin_example"; // String | try { - RomanizedNameOut result = apiInstance.chineseNameCandidates(chineseSurnameLatin, chineseGivenNameLatin); + NameMatchCandidatesOut result = apiInstance.chineseNameCandidates(chineseSurnameLatin, chineseGivenNameLatin); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ChineseApi#chineseNameCandidates"); @@ -64,7 +64,7 @@ Name | Type | Description | Notes ### Return type -[**RomanizedNameOut**](RomanizedNameOut.md) +[**NameMatchCandidatesOut**](NameMatchCandidatesOut.md) ### Authorization @@ -130,7 +130,7 @@ Name | Type | Description | Notes # **chineseNameCandidatesGenderBatch** -> BatchNameMatchCandidatesOut chineseNameCandidatesGenderBatch(batchFirstLastNameIn) +> BatchNameMatchCandidatesOut chineseNameCandidatesGenderBatch(batchFirstLastNameGenderIn) Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname) ex. Wang Xiaoming. @@ -152,9 +152,9 @@ api_key.setApiKey("YOUR API KEY"); //api_key.setApiKeyPrefix("Token"); ChineseApi apiInstance = new ChineseApi(); -BatchFirstLastNameIn batchFirstLastNameIn = new BatchFirstLastNameIn(); // BatchFirstLastNameIn | A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname +BatchFirstLastNameGenderIn batchFirstLastNameGenderIn = new BatchFirstLastNameGenderIn(); // BatchFirstLastNameGenderIn | A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname try { - BatchNameMatchCandidatesOut result = apiInstance.chineseNameCandidatesGenderBatch(batchFirstLastNameIn); + BatchNameMatchCandidatesOut result = apiInstance.chineseNameCandidatesGenderBatch(batchFirstLastNameGenderIn); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ChineseApi#chineseNameCandidatesGenderBatch"); @@ -166,7 +166,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **batchFirstLastNameIn** | [**BatchFirstLastNameIn**](BatchFirstLastNameIn.md)| A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname | [optional] + **batchFirstLastNameGenderIn** | [**BatchFirstLastNameGenderIn**](BatchFirstLastNameGenderIn.md)| A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname | [optional] ### Return type @@ -183,7 +183,7 @@ Name | Type | Description | Notes # **chineseNameGenderCandidates** -> RomanizedNameOut chineseNameGenderCandidates(chineseSurnameLatin, chineseGivenNameLatin, knownGender) +> NameMatchCandidatesOut chineseNameGenderCandidates(chineseSurnameLatin, chineseGivenNameLatin, knownGender) Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming - having a known gender ('male' or 'female') @@ -209,7 +209,7 @@ String chineseSurnameLatin = "chineseSurnameLatin_example"; // String | String chineseGivenNameLatin = "chineseGivenNameLatin_example"; // String | String knownGender = "knownGender_example"; // String | try { - RomanizedNameOut result = apiInstance.chineseNameGenderCandidates(chineseSurnameLatin, chineseGivenNameLatin, knownGender); + NameMatchCandidatesOut result = apiInstance.chineseNameGenderCandidates(chineseSurnameLatin, chineseGivenNameLatin, knownGender); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ChineseApi#chineseNameGenderCandidates"); @@ -227,7 +227,7 @@ Name | Type | Description | Notes ### Return type -[**RomanizedNameOut**](RomanizedNameOut.md) +[**NameMatchCandidatesOut**](NameMatchCandidatesOut.md) ### Authorization @@ -240,7 +240,7 @@ Name | Type | Description | Notes # **chineseNameMatch** -> RomanizedNameOut chineseNameMatch(chineseSurnameLatin, chineseGivenNameLatin, chineseName) +> NameMatchedOut chineseNameMatch(chineseSurnameLatin, chineseGivenNameLatin, chineseName) Return a score for matching Chinese name ex. 王晓明 with a romanized name ex. Wang Xiaoming @@ -266,7 +266,7 @@ String chineseSurnameLatin = "chineseSurnameLatin_example"; // String | String chineseGivenNameLatin = "chineseGivenNameLatin_example"; // String | String chineseName = "chineseName_example"; // String | try { - RomanizedNameOut result = apiInstance.chineseNameMatch(chineseSurnameLatin, chineseGivenNameLatin, chineseName); + NameMatchedOut result = apiInstance.chineseNameMatch(chineseSurnameLatin, chineseGivenNameLatin, chineseName); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ChineseApi#chineseNameMatch"); @@ -284,7 +284,7 @@ Name | Type | Description | Notes ### Return type -[**RomanizedNameOut**](RomanizedNameOut.md) +[**NameMatchedOut**](NameMatchedOut.md) ### Authorization @@ -297,7 +297,7 @@ Name | Type | Description | Notes # **chineseNameMatchBatch** -> BatchNameMatchCandidatesOut chineseNameMatchBatch(batchFirstLastNameIn) +> BatchNameMatchedOut chineseNameMatchBatch(batchMatchPersonalFirstLastNameIn) Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname), ex. Wang Xiaoming @@ -319,9 +319,9 @@ api_key.setApiKey("YOUR API KEY"); //api_key.setApiKeyPrefix("Token"); ChineseApi apiInstance = new ChineseApi(); -BatchFirstLastNameIn batchFirstLastNameIn = new BatchFirstLastNameIn(); // BatchFirstLastNameIn | A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname +BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn = new BatchMatchPersonalFirstLastNameIn(); // BatchMatchPersonalFirstLastNameIn | A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname try { - BatchNameMatchCandidatesOut result = apiInstance.chineseNameMatchBatch(batchFirstLastNameIn); + BatchNameMatchedOut result = apiInstance.chineseNameMatchBatch(batchMatchPersonalFirstLastNameIn); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ChineseApi#chineseNameMatchBatch"); @@ -333,11 +333,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **batchFirstLastNameIn** | [**BatchFirstLastNameIn**](BatchFirstLastNameIn.md)| A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname | [optional] + **batchMatchPersonalFirstLastNameIn** | [**BatchMatchPersonalFirstLastNameIn**](BatchMatchPersonalFirstLastNameIn.md)| A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname | [optional] ### Return type -[**BatchNameMatchCandidatesOut**](BatchNameMatchCandidatesOut.md) +[**BatchNameMatchedOut**](BatchNameMatchedOut.md) ### Authorization diff --git a/docs/CorridorOut.md b/docs/CorridorOut.md index be64c1e0..bf559e58 100644 --- a/docs/CorridorOut.md +++ b/docs/CorridorOut.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **firstLastNameOriginedOut** | [**FirstLastNameOriginedOut**](FirstLastNameOriginedOut.md) | | [optional] **firstLastNameDiasporaedOut** | [**FirstLastNameDiasporaedOut**](FirstLastNameDiasporaedOut.md) | | [optional] **script** | **String** | | [optional] -**category** | **String** | | [optional] diff --git a/docs/FeedbackLoopOut.md b/docs/FeedbackLoopOut.md index ead79626..ad2990b4 100644 --- a/docs/FeedbackLoopOut.md +++ b/docs/FeedbackLoopOut.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**feedbackCredits** | **Long** | | [optional] +**feedbackCredits** | **Long** | Number of units recredited as per feedback loop successful classification | [optional] diff --git a/docs/FirstLastNameDiasporaedOut.md b/docs/FirstLastNameDiasporaedOut.md index 20065ee6..aa3e54f8 100644 --- a/docs/FirstLastNameDiasporaedOut.md +++ b/docs/FirstLastNameDiasporaedOut.md @@ -6,15 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **String** | | [optional] -**score** | **Double** | Compatibility to NamSor_v1 Origin score value | [optional] -**ethnicityAlt** | **String** | | [optional] -**ethnicity** | **String** | | [optional] -**lifted** | **Boolean** | | [optional] -**countryIso2** | **String** | | [optional] -**ethnicitiesTop** | **List<String>** | List ethnicities (top 10) | [optional] -**category** | **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] +**score** | **Double** | Compatibility to NamSor_v1 Diaspora score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] +**ethnicityAlt** | **String** | The second best alternative ethnicity | [optional] +**ethnicity** | **String** | The most likely ethnicity | [optional] +**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] diff --git a/docs/FirstLastNameGenderIn.md b/docs/FirstLastNameGenderIn.md index 5303de82..182e6f2d 100644 --- a/docs/FirstLastNameGenderIn.md +++ b/docs/FirstLastNameGenderIn.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **String** | | [optional] **firstName** | **String** | | [optional] **lastName** | **String** | | [optional] -**gender** | **String** | | [optional] +**gender** | **String** | The known gender of the name | [optional] diff --git a/docs/FirstLastNameGenderedOut.md b/docs/FirstLastNameGenderedOut.md index 1b85fd6d..9da42c9a 100644 --- a/docs/FirstLastNameGenderedOut.md +++ b/docs/FirstLastNameGenderedOut.md @@ -6,13 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **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] **likelyGender** | [**LikelyGenderEnum**](#LikelyGenderEnum) | Most likely gender | [optional] **genderScale** | **Double** | Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value | [optional] -**score** | **Double** | | [optional] -**probabilityCalibrated** | **Double** | | [optional] -**category** | **String** | | [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] diff --git a/docs/FirstLastNameOriginedOut.md b/docs/FirstLastNameOriginedOut.md index ffac991a..e6ceb632 100644 --- a/docs/FirstLastNameOriginedOut.md +++ b/docs/FirstLastNameOriginedOut.md @@ -6,18 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **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] **countryOrigin** | **String** | Most likely country of Origin | [optional] **countryOriginAlt** | **String** | Second best alternative : country of Origin | [optional] **countriesOriginTop** | **List<String>** | List countries of Origin (top 10) | [optional] -**score** | **Double** | Compatibility to NamSor_v1 Origin score value | [optional] +**score** | **Double** | Compatibility to NamSor_v1 Origin score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] **regionOrigin** | **String** | Most likely region of Origin (based on countryOrigin ISO2 code) | [optional] -**topRegionOrigin** | **String** | Most likely region of Origin (based on countryOrigin ISO2 code) | [optional] -**subRegionOrigin** | **String** | Most likely region of Origin (based on countryOrigin ISO2 code) | [optional] -**probabilityCalibrated** | **Double** | | [optional] -**probabilityAltCalibrated** | **Double** | | [optional] -**category** | **String** | | [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] diff --git a/docs/FirstLastNameOut.md b/docs/FirstLastNameOut.md index 802af893..62aa6bc3 100644 --- a/docs/FirstLastNameOut.md +++ b/docs/FirstLastNameOut.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **String** | | [optional] -**category** | **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] diff --git a/docs/FirstLastNamePhoneCodedOut.md b/docs/FirstLastNamePhoneCodedOut.md index dd58adb8..0735cf1b 100644 --- a/docs/FirstLastNamePhoneCodedOut.md +++ b/docs/FirstLastNamePhoneCodedOut.md @@ -6,20 +6,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **String** | | [optional] -**internationalPhoneNumberVerified** | **String** | | [optional] -**phoneCountryIso2Verified** | **String** | | [optional] -**phoneCountryCode** | **Integer** | | [optional] -**phoneCountryCodeAlt** | **Integer** | | [optional] -**phoneCountryIso2** | **String** | | [optional] -**phoneCountryIso2Alt** | **String** | | [optional] -**originCountryIso2** | **String** | | [optional] -**originCountryIso2Alt** | **String** | | [optional] -**phoneNumber** | **String** | | [optional] -**verified** | **Boolean** | | [optional] -**score** | **Double** | | [optional] -**category** | **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] +**internationalPhoneNumberVerified** | **String** | The normalized phone number, verified using libphonenumber. | [optional] +**phoneCountryIso2Verified** | **String** | The phone ISO2 country code, verified using libphonenumber. | [optional] +**phoneCountryCode** | **Integer** | The phone country code of the phone number, verified using libphonenumber. | [optional] +**phoneCountryCodeAlt** | **Integer** | The best alternative phone country code of the phone number. | [optional] +**phoneCountryIso2** | **String** | The likely country of the phone number. | [optional] +**phoneCountryIso2Alt** | **String** | The best alternative country of the phone number. | [optional] +**originCountryIso2** | **String** | The likely country of origin of the name. | [optional] +**originCountryIso2Alt** | **String** | The best alternative country of origin of the name. | [optional] +**phoneNumber** | **String** | The input phone number. | [optional] +**verified** | **Boolean** | Indicates if the phone number could be positively verified using libphonenumber. | [optional] +**score** | **Double** | Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] **countryIso2** | **String** | | [optional] diff --git a/docs/FirstLastNameUSRaceEthnicityOut.md b/docs/FirstLastNameUSRaceEthnicityOut.md index 79b161f3..4883aecd 100644 --- a/docs/FirstLastNameUSRaceEthnicityOut.md +++ b/docs/FirstLastNameUSRaceEthnicityOut.md @@ -6,15 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **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] **raceEthnicityAlt** | [**RaceEthnicityAltEnum**](#RaceEthnicityAltEnum) | Second most likely US 'race'/ethnicity | [optional] **raceEthnicity** | [**RaceEthnicityEnum**](#RaceEthnicityEnum) | Most likely US 'race'/ethnicity | [optional] -**score** | **Double** | Compatibility to NamSor_v1 Origin score value | [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** | | [optional] -**probabilityAltCalibrated** | **Double** | | [optional] -**category** | **String** | | [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] diff --git a/docs/JapaneseApi.md b/docs/JapaneseApi.md index a29c0126..6f0bec50 100644 --- a/docs/JapaneseApi.md +++ b/docs/JapaneseApi.md @@ -237,7 +237,7 @@ Name | Type | Description | Notes # **japaneseNameGenderKanjiCandidatesBatch** -> BatchNameMatchCandidatesOut japaneseNameGenderKanjiCandidatesBatch(batchFirstLastNameIn) +> BatchNameMatchCandidatesOut japaneseNameGenderKanjiCandidatesBatch(batchFirstLastNameGenderIn) Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname) with KNOWN gender, ex. Yamamoto Sanae @@ -259,9 +259,9 @@ api_key.setApiKey("YOUR API KEY"); //api_key.setApiKeyPrefix("Token"); JapaneseApi apiInstance = new JapaneseApi(); -BatchFirstLastNameIn batchFirstLastNameIn = new BatchFirstLastNameIn(); // BatchFirstLastNameIn | A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender +BatchFirstLastNameGenderIn batchFirstLastNameGenderIn = new BatchFirstLastNameGenderIn(); // BatchFirstLastNameGenderIn | A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender try { - BatchNameMatchCandidatesOut result = apiInstance.japaneseNameGenderKanjiCandidatesBatch(batchFirstLastNameIn); + BatchNameMatchCandidatesOut result = apiInstance.japaneseNameGenderKanjiCandidatesBatch(batchFirstLastNameGenderIn); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling JapaneseApi#japaneseNameGenderKanjiCandidatesBatch"); @@ -273,7 +273,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **batchFirstLastNameIn** | [**BatchFirstLastNameIn**](BatchFirstLastNameIn.md)| A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender | [optional] + **batchFirstLastNameGenderIn** | [**BatchFirstLastNameGenderIn**](BatchFirstLastNameGenderIn.md)| A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender | [optional] ### Return type @@ -290,7 +290,7 @@ Name | Type | Description | Notes # **japaneseNameKanjiCandidates** -> RomanizedNameOut japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender) +> NameMatchCandidatesOut japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender) Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. @@ -316,7 +316,7 @@ String japaneseSurnameLatin = "japaneseSurnameLatin_example"; // String | String japaneseGivenNameLatin = "japaneseGivenNameLatin_example"; // String | String knownGender = "knownGender_example"; // String | try { - RomanizedNameOut result = apiInstance.japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender); + NameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling JapaneseApi#japaneseNameKanjiCandidates"); @@ -334,7 +334,7 @@ Name | Type | Description | Notes ### Return type -[**RomanizedNameOut**](RomanizedNameOut.md) +[**NameMatchCandidatesOut**](NameMatchCandidatesOut.md) ### Authorization @@ -347,7 +347,7 @@ Name | Type | Description | Notes # **japaneseNameKanjiCandidates1** -> RomanizedNameOut japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin) +> NameMatchCandidatesOut japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin) Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae @@ -372,7 +372,7 @@ JapaneseApi apiInstance = new JapaneseApi(); String japaneseSurnameLatin = "japaneseSurnameLatin_example"; // String | String japaneseGivenNameLatin = "japaneseGivenNameLatin_example"; // String | try { - RomanizedNameOut result = apiInstance.japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin); + NameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling JapaneseApi#japaneseNameKanjiCandidates1"); @@ -389,7 +389,7 @@ Name | Type | Description | Notes ### Return type -[**RomanizedNameOut**](RomanizedNameOut.md) +[**NameMatchCandidatesOut**](NameMatchCandidatesOut.md) ### Authorization @@ -455,7 +455,7 @@ Name | Type | Description | Notes # **japaneseNameLatinCandidates** -> RomanizedNameOut japaneseNameLatinCandidates(japaneseSurnameKanji, japaneseGivenNameKanji) +> NameMatchCandidatesOut japaneseNameLatinCandidates(japaneseSurnameKanji, japaneseGivenNameKanji) Romanize japanese name, based on the name in Kanji. @@ -480,7 +480,7 @@ JapaneseApi apiInstance = new JapaneseApi(); String japaneseSurnameKanji = "japaneseSurnameKanji_example"; // String | String japaneseGivenNameKanji = "japaneseGivenNameKanji_example"; // String | try { - RomanizedNameOut result = apiInstance.japaneseNameLatinCandidates(japaneseSurnameKanji, japaneseGivenNameKanji); + NameMatchCandidatesOut result = apiInstance.japaneseNameLatinCandidates(japaneseSurnameKanji, japaneseGivenNameKanji); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling JapaneseApi#japaneseNameLatinCandidates"); @@ -497,7 +497,7 @@ Name | Type | Description | Notes ### Return type -[**RomanizedNameOut**](RomanizedNameOut.md) +[**NameMatchCandidatesOut**](NameMatchCandidatesOut.md) ### Authorization @@ -563,7 +563,7 @@ Name | Type | Description | Notes # **japaneseNameMatch** -> RomanizedNameOut japaneseNameMatch(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName) +> NameMatchedOut japaneseNameMatch(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName) Return a score for matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae @@ -589,7 +589,7 @@ String japaneseSurnameLatin = "japaneseSurnameLatin_example"; // String | String japaneseGivenNameLatin = "japaneseGivenNameLatin_example"; // String | String japaneseName = "japaneseName_example"; // String | try { - RomanizedNameOut result = apiInstance.japaneseNameMatch(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName); + NameMatchedOut result = apiInstance.japaneseNameMatch(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling JapaneseApi#japaneseNameMatch"); @@ -607,7 +607,7 @@ Name | Type | Description | Notes ### Return type -[**RomanizedNameOut**](RomanizedNameOut.md) +[**NameMatchedOut**](NameMatchedOut.md) ### Authorization @@ -620,7 +620,7 @@ Name | Type | Description | Notes # **japaneseNameMatchBatch** -> BatchNameMatchCandidatesOut japaneseNameMatchBatch(batchFirstLastNameIn) +> BatchNameMatchedOut japaneseNameMatchBatch(batchMatchPersonalFirstLastNameIn) Return a score for matching a list of Japanese names in KANJI ex. 山本 早苗 with romanized names ex. Yamamoto Sanae @@ -642,9 +642,9 @@ api_key.setApiKey("YOUR API KEY"); //api_key.setApiKeyPrefix("Token"); JapaneseApi apiInstance = new JapaneseApi(); -BatchFirstLastNameIn batchFirstLastNameIn = new BatchFirstLastNameIn(); // BatchFirstLastNameIn | A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname +BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn = new BatchMatchPersonalFirstLastNameIn(); // BatchMatchPersonalFirstLastNameIn | A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname try { - BatchNameMatchCandidatesOut result = apiInstance.japaneseNameMatchBatch(batchFirstLastNameIn); + BatchNameMatchedOut result = apiInstance.japaneseNameMatchBatch(batchMatchPersonalFirstLastNameIn); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling JapaneseApi#japaneseNameMatchBatch"); @@ -656,11 +656,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **batchFirstLastNameIn** | [**BatchFirstLastNameIn**](BatchFirstLastNameIn.md)| A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname | [optional] + **batchMatchPersonalFirstLastNameIn** | [**BatchMatchPersonalFirstLastNameIn**](BatchMatchPersonalFirstLastNameIn.md)| A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname | [optional] ### Return type -[**BatchNameMatchCandidatesOut**](BatchNameMatchCandidatesOut.md) +[**BatchNameMatchedOut**](BatchNameMatchedOut.md) ### Authorization @@ -673,7 +673,7 @@ Name | Type | Description | Notes # **japaneseNameMatchFeedbackLoop** -> RomanizedNameOut japaneseNameMatchFeedbackLoop(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName) +> FeedbackLoopOut 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 @@ -699,7 +699,7 @@ String japaneseSurnameLatin = "japaneseSurnameLatin_example"; // String | String japaneseGivenNameLatin = "japaneseGivenNameLatin_example"; // String | String japaneseName = "japaneseName_example"; // String | try { - RomanizedNameOut result = apiInstance.japaneseNameMatchFeedbackLoop(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName); + FeedbackLoopOut result = apiInstance.japaneseNameMatchFeedbackLoop(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling JapaneseApi#japaneseNameMatchFeedbackLoop"); @@ -717,7 +717,7 @@ Name | Type | Description | Notes ### Return type -[**RomanizedNameOut**](RomanizedNameOut.md) +[**FeedbackLoopOut**](FeedbackLoopOut.md) ### Authorization diff --git a/docs/NameMatchCandidateOut.md b/docs/NameMatchCandidateOut.md index 322852d1..396b2913 100644 --- a/docs/NameMatchCandidateOut.md +++ b/docs/NameMatchCandidateOut.md @@ -4,10 +4,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**candidateName** | **String** | | [optional] -**probability** | **Double** | | [optional] -**predScoreGivenName** | **Double** | | [optional] -**predScoreFamilyName** | **Double** | | [optional] +**candidateName** | **String** | The name matching candidate name | [optional] +**probability** | **Double** | The name matching estimated probability. | [optional] +**predScoreGivenName** | **Double** | The given name prediction score. | [optional] +**predScoreFamilyName** | **Double** | The family name prediction score. | [optional] diff --git a/docs/NameMatchCandidatesOut.md b/docs/NameMatchCandidatesOut.md index 0faab36c..ca10b69b 100644 --- a/docs/NameMatchCandidatesOut.md +++ b/docs/NameMatchCandidatesOut.md @@ -6,11 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **String** | | [optional] -**orderOption** | **String** | | [optional] -**matchCandidates** | [**List<NameMatchCandidateOut>**](NameMatchCandidateOut.md) | | [optional] -**category** | **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] +**orderOption** | **String** | The option for ordering | [optional] +**matchCandidates** | [**List<NameMatchCandidateOut>**](NameMatchCandidateOut.md) | The ordered list of name matching candidates | [optional] diff --git a/docs/NameMatchedOut.md b/docs/NameMatchedOut.md index f63fc531..327637ac 100644 --- a/docs/NameMatchedOut.md +++ b/docs/NameMatchedOut.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**matchStatus** | **String** | | [optional] +**matchStatus** | **String** | The name matching status. | [optional] **score** | **Double** | | [optional] -**category** | **String** | | [optional] diff --git a/docs/PersonalApi.md b/docs/PersonalApi.md index 1a451d65..efc4c9bc 100644 --- a/docs/PersonalApi.md +++ b/docs/PersonalApi.md @@ -24,8 +24,6 @@ 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. -[**parsedGenderBatch**](PersonalApi.md#parsedGenderBatch) | **POST** /api2/json/parsedGenderBatch | Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. -[**parsedGenderGeoBatch**](PersonalApi.md#parsedGenderGeoBatch) | **POST** /api2/json/parsedGenderGeoBatch | Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. [**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). @@ -1113,112 +1111,6 @@ Name | Type | Description | Notes [api_key](../README.md#api_key) -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **parsedGenderBatch** -> BatchFirstLastNameGenderedOut parsedGenderBatch(batchParsedFullNameIn) - -Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. - -### 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(); -BatchParsedFullNameIn batchParsedFullNameIn = new BatchParsedFullNameIn(); // BatchParsedFullNameIn | A list of personal names -try { - BatchFirstLastNameGenderedOut result = apiInstance.parsedGenderBatch(batchParsedFullNameIn); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PersonalApi#parsedGenderBatch"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **batchParsedFullNameIn** | [**BatchParsedFullNameIn**](BatchParsedFullNameIn.md)| A list of personal names | [optional] - -### Return type - -[**BatchFirstLastNameGenderedOut**](BatchFirstLastNameGenderedOut.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **parsedGenderGeoBatch** -> BatchFirstLastNameGenderedOut parsedGenderGeoBatch(batchParsedFullNameGeoIn) - -Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. - -### 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(); -BatchParsedFullNameGeoIn batchParsedFullNameGeoIn = new BatchParsedFullNameGeoIn(); // BatchParsedFullNameGeoIn | A list of personal names -try { - BatchFirstLastNameGenderedOut result = apiInstance.parsedGenderGeoBatch(batchParsedFullNameGeoIn); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PersonalApi#parsedGenderGeoBatch"); - e.printStackTrace(); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **batchParsedFullNameGeoIn** | [**BatchParsedFullNameGeoIn**](BatchParsedFullNameGeoIn.md)| A list of personal names | [optional] - -### Return type - -[**BatchFirstLastNameGenderedOut**](BatchFirstLastNameGenderedOut.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 cc296312..d8ad1399 100644 --- a/docs/PersonalNameGenderedOut.md +++ b/docs/PersonalNameGenderedOut.md @@ -6,12 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**name** | **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] -**score** | **Double** | | [optional] -**probabilityCalibrated** | **Double** | | [optional] -**category** | **String** | | [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] diff --git a/docs/PersonalNameGeoOut.md b/docs/PersonalNameGeoOut.md index a16c773b..aae7153d 100644 --- a/docs/PersonalNameGeoOut.md +++ b/docs/PersonalNameGeoOut.md @@ -6,17 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**name** | **String** | | [optional] -**score** | **Double** | | [optional] -**country** | **String** | | [optional] -**countryAlt** | **String** | | [optional] -**region** | **String** | | [optional] -**topRegion** | **String** | | [optional] -**subRegion** | **String** | | [optional] +**name** | **String** | The input name. | [optional] +**score** | **Double** | Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] +**country** | **String** | Most likely country | [optional] +**countryAlt** | **String** | Second best alternative : country | [optional] +**region** | **String** | Most likely region (based on country ISO2 code) | [optional] +**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** | | [optional] -**probabilityAltCalibrated** | **Double** | | [optional] -**category** | **String** | | [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] diff --git a/docs/PersonalNameParsedOut.md b/docs/PersonalNameParsedOut.md index 210d54d9..ef09d4e2 100644 --- a/docs/PersonalNameParsedOut.md +++ b/docs/PersonalNameParsedOut.md @@ -6,12 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**name** | **String** | | [optional] -**nameParserType** | **String** | | [optional] -**nameParserTypeAlt** | **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] **firstLastName** | [**FirstLastNameOut**](FirstLastNameOut.md) | | [optional] -**score** | **Double** | | [optional] -**category** | **String** | | [optional] +**score** | **Double** | Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] diff --git a/docs/ProperNounCategorizedOut.md b/docs/ProperNounCategorizedOut.md index e0e861d8..5ccc4de3 100644 --- a/docs/ProperNounCategorizedOut.md +++ b/docs/ProperNounCategorizedOut.md @@ -6,11 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **script** | **String** | | [optional] **id** | **String** | | [optional] -**name** | **String** | | [optional] -**commonType** | **String** | | [optional] -**commonTypeAlt** | **String** | | [optional] -**score** | **Double** | | [optional] -**category** | **String** | | [optional] +**name** | **String** | The input name | [optional] +**commonType** | **String** | The most likely common name type | [optional] +**commonTypeAlt** | **String** | Best alternative for : The most likely common name type | [optional] +**score** | **Double** | Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] diff --git a/docs/SoftwareVersionOut.md b/docs/SoftwareVersionOut.md index 6e60b527..6148e614 100644 --- a/docs/SoftwareVersionOut.md +++ b/docs/SoftwareVersionOut.md @@ -4,8 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**softwareNameAndVersion** | **String** | | [optional] -**softwareVersion** | **List<Integer>** | | [optional] +**softwareNameAndVersion** | **String** | The software version | [optional] +**softwareVersion** | **List<Integer>** | The software version major minor build | [optional] diff --git a/pom.xml b/pom.xml index ea9ae0f3..6d5af345 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ namsor-sdk2 jar namsor-sdk2 - 2.0.14 + 2.0.15 https://github.com/openapitools/openapi-generator OpenAPI Java diff --git a/run-java.bash b/run-java.bash index 047e0a5d..090b17d1 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.14 --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.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 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 2982d3f3..88613b26 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,16 +27,13 @@ import java.io.IOException; -import com.namsor.sdk2.model.APIKeyOut; +import com.namsor.sdk2.model.APIClassifierTaxonomyOut; +import com.namsor.sdk2.model.APIClassifiersStatusOut; import com.namsor.sdk2.model.APIPeriodUsageOut; -import com.namsor.sdk2.model.APIPlanSubscriptionOut; -import com.namsor.sdk2.model.APIPlansOut; -import com.namsor.sdk2.model.BillingHistoryOut; -import com.namsor.sdk2.model.BillingInfoInOut; -import com.namsor.sdk2.model.CurrenciesOut; -import com.namsor.sdk2.model.InlineObject; +import com.namsor.sdk2.model.APIServicesOut; +import com.namsor.sdk2.model.APIUsageAggregatedOut; +import com.namsor.sdk2.model.APIUsageHistoryOut; import com.namsor.sdk2.model.SoftwareVersionOut; -import com.namsor.sdk2.model.SystemMetricsOut; import java.lang.reflect.Type; import java.util.ArrayList; @@ -63,148 +60,6 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Build call for addCredits - * @param apiKey (required) - * @param usageCredits (required) - * @param userMessage (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 addCreditsCall(String apiKey, Long usageCredits, String userMessage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/addCredits/{apiKey}/{usageCredits}/{userMessage}" - .replaceAll("\\{" + "apiKey" + "\\}", apiClient.escapeString(apiKey.toString())) - .replaceAll("\\{" + "usageCredits" + "\\}", apiClient.escapeString(usageCredits.toString())) - .replaceAll("\\{" + "userMessage" + "\\}", apiClient.escapeString(userMessage.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 addCreditsValidateBeforeCall(String apiKey, Long usageCredits, String userMessage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'apiKey' is set - if (apiKey == null) { - throw new ApiException("Missing the required parameter 'apiKey' when calling addCredits(Async)"); - } - - // verify the required parameter 'usageCredits' is set - if (usageCredits == null) { - throw new ApiException("Missing the required parameter 'usageCredits' when calling addCredits(Async)"); - } - - // verify the required parameter 'userMessage' is set - if (userMessage == null) { - throw new ApiException("Missing the required parameter 'userMessage' when calling addCredits(Async)"); - } - - - com.squareup.okhttp.Call call = addCreditsCall(apiKey, usageCredits, userMessage, progressListener, progressRequestListener); - return call; - - } - - /** - * Add usage credits to an API Key. - * - * @param apiKey (required) - * @param usageCredits (required) - * @param userMessage (required) - * @return SystemMetricsOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public SystemMetricsOut addCredits(String apiKey, Long usageCredits, String userMessage) throws ApiException { - ApiResponse resp = addCreditsWithHttpInfo(apiKey, usageCredits, userMessage); - return resp.getData(); - } - - /** - * Add usage credits to an API Key. - * - * @param apiKey (required) - * @param usageCredits (required) - * @param userMessage (required) - * @return ApiResponse<SystemMetricsOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse addCreditsWithHttpInfo(String apiKey, Long usageCredits, String userMessage) throws ApiException { - com.squareup.okhttp.Call call = addCreditsValidateBeforeCall(apiKey, usageCredits, userMessage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Add usage credits to an API Key. (asynchronously) - * - * @param apiKey (required) - * @param usageCredits (required) - * @param userMessage (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 addCreditsAsync(String apiKey, Long usageCredits, String userMessage, 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 = addCreditsValidateBeforeCall(apiKey, usageCredits, userMessage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } /** * Build call for anonymize * @param source (required) @@ -390,36 +245,36 @@ private com.squareup.okhttp.Call apiStatusValidateBeforeCall(final ProgressRespo } /** - * Prints the current status of the classifiers. + * Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices. * - * @return APIPlansOut + * @return APIClassifiersStatusOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public APIPlansOut apiStatus() throws ApiException { - ApiResponse resp = apiStatusWithHttpInfo(); + public APIClassifiersStatusOut apiStatus() throws ApiException { + ApiResponse resp = apiStatusWithHttpInfo(); return resp.getData(); } /** - * Prints the current status of the classifiers. + * Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices. * - * @return ApiResponse<APIPlansOut> + * @return ApiResponse<APIClassifiersStatusOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse apiStatusWithHttpInfo() throws ApiException { + public ApiResponse apiStatusWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = apiStatusValidateBeforeCall(null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Prints the current status of the classifiers. (asynchronously) + * Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices. (asynchronously) * * @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 apiStatusAsync(final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call apiStatusAsync(final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -441,7 +296,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = apiStatusValidateBeforeCall(progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -616,23 +471,23 @@ private com.squareup.okhttp.Call apiUsageHistoryValidateBeforeCall(final Progres /** * Print historical API usage. * - * @return APIPeriodUsageOut + * @return APIUsageHistoryOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public APIPeriodUsageOut apiUsageHistory() throws ApiException { - ApiResponse resp = apiUsageHistoryWithHttpInfo(); + public APIUsageHistoryOut apiUsageHistory() throws ApiException { + ApiResponse resp = apiUsageHistoryWithHttpInfo(); return resp.getData(); } /** * Print historical API usage. * - * @return ApiResponse<APIPeriodUsageOut> + * @return ApiResponse<APIUsageHistoryOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse apiUsageHistoryWithHttpInfo() throws ApiException { + public ApiResponse apiUsageHistoryWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = apiUsageHistoryValidateBeforeCall(null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -643,7 +498,7 @@ public ApiResponse apiUsageHistoryWithHttpInfo() throws ApiEx * @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 apiUsageHistoryAsync(final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call apiUsageHistoryAsync(final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -665,7 +520,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = apiUsageHistoryValidateBeforeCall(progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -728,23 +583,23 @@ private com.squareup.okhttp.Call apiUsageHistoryAggregateValidateBeforeCall(fina /** * Print historical API usage (in an aggregated view, by service, by day/hour/min). * - * @return APIPeriodUsageOut + * @return APIUsageAggregatedOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public APIPeriodUsageOut apiUsageHistoryAggregate() throws ApiException { - ApiResponse resp = apiUsageHistoryAggregateWithHttpInfo(); + public APIUsageAggregatedOut apiUsageHistoryAggregate() throws ApiException { + ApiResponse resp = apiUsageHistoryAggregateWithHttpInfo(); return resp.getData(); } /** * Print historical API usage (in an aggregated view, by service, by day/hour/min). * - * @return ApiResponse<APIPeriodUsageOut> + * @return ApiResponse<APIUsageAggregatedOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse apiUsageHistoryAggregateWithHttpInfo() throws ApiException { + public ApiResponse apiUsageHistoryAggregateWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = apiUsageHistoryAggregateValidateBeforeCall(null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -755,7 +610,7 @@ public ApiResponse apiUsageHistoryAggregateWithHttpInfo() thr * @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 apiUsageHistoryAggregateAsync(final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call apiUsageHistoryAggregateAsync(final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -777,24 +632,22 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = apiUsageHistoryAggregateValidateBeforeCall(progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for availablePlans - * @param token (required) + * Build call for availableServices * @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 availablePlansCall(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call availableServicesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = new Object(); // create path and map variables - String localVarPath = "/api2/json/availablePlans/{token}" - .replaceAll("\\{" + "token" + "\\}", apiClient.escapeString(token.toString())); + String localVarPath = "/api2/json/apiServices"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -831,53 +684,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call availablePlansValidateBeforeCall(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'token' is set - if (token == null) { - throw new ApiException("Missing the required parameter 'token' when calling availablePlans(Async)"); - } + private com.squareup.okhttp.Call availableServicesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = availablePlansCall(token, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = availableServicesCall(progressListener, progressRequestListener); return call; } /** - * List all available plans in the user's preferred currency. + * List of classification services and usage cost in Units per classification (default is 1=ONE Unit). Some API endpoints (ex. Corridor) combine multiple classifiers. * - * @param token (required) - * @return APIPlansOut + * @return APIServicesOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public APIPlansOut availablePlans(String token) throws ApiException { - ApiResponse resp = availablePlansWithHttpInfo(token); + public APIServicesOut availableServices() throws ApiException { + ApiResponse resp = availableServicesWithHttpInfo(); return resp.getData(); } /** - * List all available plans in the user's preferred currency. + * List of classification services and usage cost in Units per classification (default is 1=ONE Unit). Some API endpoints (ex. Corridor) combine multiple classifiers. * - * @param token (required) - * @return ApiResponse<APIPlansOut> + * @return ApiResponse<APIServicesOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse availablePlansWithHttpInfo(String token) throws ApiException { - com.squareup.okhttp.Call call = availablePlansValidateBeforeCall(token, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse availableServicesWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = availableServicesValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * List all available plans in the user's preferred currency. (asynchronously) + * List of classification services and usage cost in Units per classification (default is 1=ONE Unit). Some API endpoints (ex. Corridor) combine multiple classifiers. (asynchronously) * - * @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 availablePlansAsync(String token, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call availableServicesAsync(final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -898,30 +743,34 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = availablePlansValidateBeforeCall(token, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = availableServicesValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for availablePlans1 + * Build call for disable + * @param source The API Key to set as enabled/disabled. (required) + * @param disabled (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 availablePlans1Call(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call disableCall(String source, Boolean disabled, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = new Object(); // create path and map variables - String localVarPath = "/api2/json/availablePlans"; + String localVarPath = "/api2/json/disable/{source}/{disabled}" + .replaceAll("\\{" + "source" + "\\}", apiClient.escapeString(source.toString())) + .replaceAll("\\{" + "disabled" + "\\}", apiClient.escapeString(disabled.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) { @@ -951,45 +800,58 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call availablePlans1ValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call disableValidateBeforeCall(String source, Boolean disabled, 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 disable(Async)"); + } + + // verify the required parameter 'disabled' is set + if (disabled == null) { + throw new ApiException("Missing the required parameter 'disabled' when calling disable(Async)"); + } - com.squareup.okhttp.Call call = availablePlans1Call(progressListener, progressRequestListener); + com.squareup.okhttp.Call call = disableCall(source, disabled, progressListener, progressRequestListener); return call; } /** - * List all available plans in the default currency (usd). + * Activate/deactivate an API Key. * - * @return APIPlansOut + * @param source The API Key to set as enabled/disabled. (required) + * @param disabled (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public APIPlansOut availablePlans1() throws ApiException { - ApiResponse resp = availablePlans1WithHttpInfo(); - return resp.getData(); + public void disable(String source, Boolean disabled) throws ApiException { + disableWithHttpInfo(source, disabled); } /** - * List all available plans in the default currency (usd). + * Activate/deactivate an API Key. * - * @return ApiResponse<APIPlansOut> + * @param source The API Key to set as enabled/disabled. (required) + * @param disabled (required) + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse availablePlans1WithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = availablePlans1ValidateBeforeCall(null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + public ApiResponse disableWithHttpInfo(String source, Boolean disabled) throws ApiException { + com.squareup.okhttp.Call call = disableValidateBeforeCall(source, disabled, null, null); + return apiClient.execute(call); } /** - * List all available plans in the default currency (usd). (asynchronously) + * Activate/deactivate an API Key. (asynchronously) * + * @param source The API Key to set as enabled/disabled. (required) + * @param disabled (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 availablePlans1Async(final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call disableAsync(String source, Boolean disabled, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1010,30 +872,33 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = availablePlans1ValidateBeforeCall(progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); + com.squareup.okhttp.Call call = disableValidateBeforeCall(source, disabled, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); return call; } /** - * Build call for availableServices + * Build call for learnable + * @param source The API Key to set as learnable/non learnable. (required) + * @param learnable (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 availableServicesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call learnableCall(String source, Boolean learnable, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = new Object(); // create path and map variables - String localVarPath = "/api2/json/apiServices"; + String localVarPath = "/api2/json/learnable/{source}/{learnable}" + .replaceAll("\\{" + "source" + "\\}", apiClient.escapeString(source.toString())) + .replaceAll("\\{" + "learnable" + "\\}", apiClient.escapeString(learnable.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) { @@ -1063,45 +928,58 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call availableServicesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call learnableValidateBeforeCall(String source, Boolean learnable, 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 learnable(Async)"); + } + + // verify the required parameter 'learnable' is set + if (learnable == null) { + throw new ApiException("Missing the required parameter 'learnable' when calling learnable(Async)"); + } - com.squareup.okhttp.Call call = availableServicesCall(progressListener, progressRequestListener); + com.squareup.okhttp.Call call = learnableCall(source, learnable, progressListener, progressRequestListener); return call; } /** - * List of API services and usage cost in Units (default is 1=ONE Unit). + * Activate/deactivate learning from a source. * - * @return APIPlansOut + * @param source The API Key to set as learnable/non learnable. (required) + * @param learnable (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public APIPlansOut availableServices() throws ApiException { - ApiResponse resp = availableServicesWithHttpInfo(); - return resp.getData(); + public void learnable(String source, Boolean learnable) throws ApiException { + learnableWithHttpInfo(source, learnable); } /** - * List of API services and usage cost in Units (default is 1=ONE Unit). + * Activate/deactivate learning from a source. * - * @return ApiResponse<APIPlansOut> + * @param source The API Key to set as learnable/non learnable. (required) + * @param learnable (required) + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse availableServicesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = availableServicesValidateBeforeCall(null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + public ApiResponse learnableWithHttpInfo(String source, Boolean learnable) throws ApiException { + com.squareup.okhttp.Call call = learnableValidateBeforeCall(source, learnable, null, null); + return apiClient.execute(call); } /** - * List of API services and usage cost in Units (default is 1=ONE Unit). (asynchronously) + * Activate/deactivate learning from a source. (asynchronously) * + * @param source The API Key to set as learnable/non learnable. (required) + * @param learnable (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 availableServicesAsync(final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call learnableAsync(String source, Boolean learnable, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1122,23 +1000,22 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = availableServicesValidateBeforeCall(progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); + com.squareup.okhttp.Call call = learnableValidateBeforeCall(source, learnable, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); return call; } /** - * Build call for billingCurrencies + * Build call for softwareVersion * @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 billingCurrenciesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call softwareVersionCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = new Object(); // create path and map variables - String localVarPath = "/api2/json/billingCurrencies"; + String localVarPath = "/api2/json/softwareVersion"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1175,45 +1052,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call billingCurrenciesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call softwareVersionValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = billingCurrenciesCall(progressListener, progressRequestListener); + com.squareup.okhttp.Call call = softwareVersionCall(progressListener, progressRequestListener); return call; } /** - * List possible currency options for billing (USD, EUR, GBP, ...) + * Get the current software version * - * @return CurrenciesOut + * @return SoftwareVersionOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CurrenciesOut billingCurrencies() throws ApiException { - ApiResponse resp = billingCurrenciesWithHttpInfo(); + public SoftwareVersionOut softwareVersion() throws ApiException { + ApiResponse resp = softwareVersionWithHttpInfo(); return resp.getData(); } /** - * List possible currency options for billing (USD, EUR, GBP, ...) + * Get the current software version * - * @return ApiResponse<CurrenciesOut> + * @return ApiResponse<SoftwareVersionOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse billingCurrenciesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = billingCurrenciesValidateBeforeCall(null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse softwareVersionWithHttpInfo() throws ApiException { + com.squareup.okhttp.Call call = softwareVersionValidateBeforeCall(null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * List possible currency options for billing (USD, EUR, GBP, ...) (asynchronously) + * Get the current software version (asynchronously) * * @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 billingCurrenciesAsync(final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call softwareVersionAsync(final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1234,25 +1111,25 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = billingCurrenciesValidateBeforeCall(progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = softwareVersionValidateBeforeCall(progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for billingHistory - * @param token (required) + * Build call for taxonomyClasses + * @param classifierName (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 billingHistoryCall(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call taxonomyClassesCall(String classifierName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = new Object(); // create path and map variables - String localVarPath = "/api2/json/billingHistory/{token}" - .replaceAll("\\{" + "token" + "\\}", apiClient.escapeString(token.toString())); + String localVarPath = "/api2/json/taxonomyClasses/{classifierName}" + .replaceAll("\\{" + "classifierName" + "\\}", apiClient.escapeString(classifierName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1289,53 +1166,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call billingHistoryValidateBeforeCall(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call taxonomyClassesValidateBeforeCall(String classifierName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'token' is set - if (token == null) { - throw new ApiException("Missing the required parameter 'token' when calling billingHistory(Async)"); + // verify the required parameter 'classifierName' is set + if (classifierName == null) { + throw new ApiException("Missing the required parameter 'classifierName' when calling taxonomyClasses(Async)"); } - com.squareup.okhttp.Call call = billingHistoryCall(token, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = taxonomyClassesCall(classifierName, progressListener, progressRequestListener); return call; } /** - * Read the history billing information (invoices paid via Stripe or manually). + * Print the taxonomy classes valid for the given classifier. * - * @param token (required) - * @return BillingHistoryOut + * @param classifierName (required) + * @return APIClassifierTaxonomyOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public BillingHistoryOut billingHistory(String token) throws ApiException { - ApiResponse resp = billingHistoryWithHttpInfo(token); + public APIClassifierTaxonomyOut taxonomyClasses(String classifierName) throws ApiException { + ApiResponse resp = taxonomyClassesWithHttpInfo(classifierName); return resp.getData(); } /** - * Read the history billing information (invoices paid via Stripe or manually). + * Print the taxonomy classes valid for the given classifier. * - * @param token (required) - * @return ApiResponse<BillingHistoryOut> + * @param classifierName (required) + * @return ApiResponse<APIClassifierTaxonomyOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse billingHistoryWithHttpInfo(String token) throws ApiException { - com.squareup.okhttp.Call call = billingHistoryValidateBeforeCall(token, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse taxonomyClassesWithHttpInfo(String classifierName) throws ApiException { + com.squareup.okhttp.Call call = taxonomyClassesValidateBeforeCall(classifierName, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read the history billing information (invoices paid via Stripe or manually). (asynchronously) + * Print the taxonomy classes valid for the given classifier. (asynchronously) * - * @param token (required) + * @param classifierName (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 billingHistoryAsync(String token, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call taxonomyClassesAsync(String classifierName, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1356,3321 +1233,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = billingHistoryValidateBeforeCall(token, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = taxonomyClassesValidateBeforeCall(classifierName, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } - /** - * Build call for billingInfo - * @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 billingInfoCall(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/billingInfo/{token}" - .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 = { - "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 billingInfoValidateBeforeCall(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'token' is set - if (token == null) { - throw new ApiException("Missing the required parameter 'token' when calling billingInfo(Async)"); - } - - - com.squareup.okhttp.Call call = billingInfoCall(token, progressListener, progressRequestListener); - return call; - - } - - /** - * Read the billing information (company name, address, phone, vat ID) - * - * @param token (required) - * @return BillingInfoInOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public BillingInfoInOut billingInfo(String token) throws ApiException { - ApiResponse resp = billingInfoWithHttpInfo(token); - return resp.getData(); - } - - /** - * Read the billing information (company name, address, phone, vat ID) - * - * @param token (required) - * @return ApiResponse<BillingInfoInOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse billingInfoWithHttpInfo(String token) throws ApiException { - com.squareup.okhttp.Call call = billingInfoValidateBeforeCall(token, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Read the billing information (company name, address, phone, vat ID) (asynchronously) - * - * @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 billingInfoAsync(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 = billingInfoValidateBeforeCall(token, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for charge - * @param inlineObject (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 chargeCall(InlineObject inlineObject, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = inlineObject; - - // create path and map variables - String localVarPath = "/api2/json/charge"; - - 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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); - } - - @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call chargeValidateBeforeCall(InlineObject inlineObject, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - - com.squareup.okhttp.Call call = chargeCall(inlineObject, progressListener, progressRequestListener); - return call; - - } - - /** - * Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. - * - * @param inlineObject (optional) - * @return APIKeyOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIKeyOut charge(InlineObject inlineObject) throws ApiException { - ApiResponse resp = chargeWithHttpInfo(inlineObject); - return resp.getData(); - } - - /** - * Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. - * - * @param inlineObject (optional) - * @return ApiResponse<APIKeyOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse chargeWithHttpInfo(InlineObject inlineObject) throws ApiException { - com.squareup.okhttp.Call call = chargeValidateBeforeCall(inlineObject, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. (asynchronously) - * - * @param inlineObject (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 chargeAsync(InlineObject inlineObject, 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 = chargeValidateBeforeCall(inlineObject, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for corporateKey - * @param apiKey (required) - * @param corporate (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 corporateKeyCall(String apiKey, Boolean corporate, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/corporateKey/{apiKey}/{corporate}" - .replaceAll("\\{" + "apiKey" + "\\}", apiClient.escapeString(apiKey.toString())) - .replaceAll("\\{" + "corporate" + "\\}", apiClient.escapeString(corporate.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 corporateKeyValidateBeforeCall(String apiKey, Boolean corporate, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'apiKey' is set - if (apiKey == null) { - throw new ApiException("Missing the required parameter 'apiKey' when calling corporateKey(Async)"); - } - - // verify the required parameter 'corporate' is set - if (corporate == null) { - throw new ApiException("Missing the required parameter 'corporate' when calling corporateKey(Async)"); - } - - - com.squareup.okhttp.Call call = corporateKeyCall(apiKey, corporate, progressListener, progressRequestListener); - return call; - - } - - /** - * Setting an API Key to a corporate status. - * - * @param apiKey (required) - * @param corporate (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public void corporateKey(String apiKey, Boolean corporate) throws ApiException { - corporateKeyWithHttpInfo(apiKey, corporate); - } - - /** - * Setting an API Key to a corporate status. - * - * @param apiKey (required) - * @param corporate (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse corporateKeyWithHttpInfo(String apiKey, Boolean corporate) throws ApiException { - com.squareup.okhttp.Call call = corporateKeyValidateBeforeCall(apiKey, corporate, null, null); - return apiClient.execute(call); - } - - /** - * Setting an API Key to a corporate status. (asynchronously) - * - * @param apiKey (required) - * @param corporate (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 corporateKeyAsync(String apiKey, Boolean corporate, 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 = corporateKeyValidateBeforeCall(apiKey, corporate, progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); - return call; - } - /** - * Build call for debugLevel - * @param logger (required) - * @param level (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 debugLevelCall(String logger, String level, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/debugLevel/{logger}/{level}" - .replaceAll("\\{" + "logger" + "\\}", apiClient.escapeString(logger.toString())) - .replaceAll("\\{" + "level" + "\\}", apiClient.escapeString(level.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 debugLevelValidateBeforeCall(String logger, String level, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'logger' is set - if (logger == null) { - throw new ApiException("Missing the required parameter 'logger' when calling debugLevel(Async)"); - } - - // verify the required parameter 'level' is set - if (level == null) { - throw new ApiException("Missing the required parameter 'level' when calling debugLevel(Async)"); - } - - - com.squareup.okhttp.Call call = debugLevelCall(logger, level, progressListener, progressRequestListener); - return call; - - } - - /** - * Update debug level for a classifier - * - * @param logger (required) - * @param level (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public void debugLevel(String logger, String level) throws ApiException { - debugLevelWithHttpInfo(logger, level); - } - - /** - * Update debug level for a classifier - * - * @param logger (required) - * @param level (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse debugLevelWithHttpInfo(String logger, String level) throws ApiException { - com.squareup.okhttp.Call call = debugLevelValidateBeforeCall(logger, level, null, null); - return apiClient.execute(call); - } - - /** - * Update debug level for a classifier (asynchronously) - * - * @param logger (required) - * @param level (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 debugLevelAsync(String logger, String level, 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 = debugLevelValidateBeforeCall(logger, level, progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); - return call; - } - /** - * Build call for flush - * @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 flushCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/flush"; - - 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 flushValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - - com.squareup.okhttp.Call call = flushCall(progressListener, progressRequestListener); - return call; - - } - - /** - * Flush counters. - * - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public void flush() throws ApiException { - flushWithHttpInfo(); - } - - /** - * Flush counters. - * - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse flushWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = flushValidateBeforeCall(null, null); - return apiClient.execute(call); - } - - /** - * Flush counters. (asynchronously) - * - * @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 flushAsync(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 = flushValidateBeforeCall(progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); - return call; - } - /** - * Build call for invalidateCache - * @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 invalidateCacheCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/invalidateCache"; - - 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 invalidateCacheValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - - com.squareup.okhttp.Call call = invalidateCacheCall(progressListener, progressRequestListener); - return call; - - } - - /** - * Invalidate system caches. - * - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public void invalidateCache() throws ApiException { - invalidateCacheWithHttpInfo(); - } - - /** - * Invalidate system caches. - * - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse invalidateCacheWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = invalidateCacheValidateBeforeCall(null, null); - return apiClient.execute(call); - } - - /** - * Invalidate system caches. (asynchronously) - * - * @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 invalidateCacheAsync(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 = invalidateCacheValidateBeforeCall(progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); - return call; - } - /** - * Build call for learnable - * @param source (required) - * @param learnable (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 learnableCall(String source, Boolean learnable, 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}" - .replaceAll("\\{" + "source" + "\\}", apiClient.escapeString(source.toString())) - .replaceAll("\\{" + "learnable" + "\\}", apiClient.escapeString(learnable.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 learnableValidateBeforeCall(String source, Boolean learnable, 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 learnable(Async)"); - } - - // verify the required parameter 'learnable' is set - if (learnable == null) { - throw new ApiException("Missing the required parameter 'learnable' when calling learnable(Async)"); - } - - - com.squareup.okhttp.Call call = learnableCall(source, learnable, progressListener, progressRequestListener); - return call; - - } - - /** - * Activate/deactivate learning from a source. - * - * @param source (required) - * @param learnable (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public void learnable(String source, Boolean learnable) throws ApiException { - learnableWithHttpInfo(source, learnable); - } - - /** - * Activate/deactivate learning from a source. - * - * @param source (required) - * @param learnable (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse learnableWithHttpInfo(String source, Boolean learnable) throws ApiException { - com.squareup.okhttp.Call call = learnableValidateBeforeCall(source, learnable, null, null); - return apiClient.execute(call); - } - - /** - * Activate/deactivate learning from a source. (asynchronously) - * - * @param source (required) - * @param learnable (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 learnableAsync(String source, Boolean learnable, 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 = learnableValidateBeforeCall(source, learnable, progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); - return call; - } - /** - * Build call for namsorCounter - * @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 namsorCounterCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/namsorCounter"; - - 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 namsorCounterValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - - com.squareup.okhttp.Call call = namsorCounterCall(progressListener, progressRequestListener); - return call; - - } - - /** - * Get the overall API counter - * - * @return SoftwareVersionOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public SoftwareVersionOut namsorCounter() throws ApiException { - ApiResponse resp = namsorCounterWithHttpInfo(); - return resp.getData(); - } - - /** - * Get the overall API counter - * - * @return ApiResponse<SoftwareVersionOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse namsorCounterWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = namsorCounterValidateBeforeCall(null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Get the overall API counter (asynchronously) - * - * @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 namsorCounterAsync(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 = namsorCounterValidateBeforeCall(progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for paymentInfo - * @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 paymentInfoCall(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/paymentInfo/{token}" - .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 = { - "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 paymentInfoValidateBeforeCall(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'token' is set - if (token == null) { - throw new ApiException("Missing the required parameter 'token' when calling paymentInfo(Async)"); - } - - - com.squareup.okhttp.Call call = paymentInfoCall(token, progressListener, progressRequestListener); - return call; - - } - - /** - * Get the Stripe payment information associated with the current google auth session token. - * - * @param token (required) - * @return APIKeyOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIKeyOut paymentInfo(String token) throws ApiException { - ApiResponse resp = paymentInfoWithHttpInfo(token); - return resp.getData(); - } - - /** - * Get the Stripe payment information associated with the current google auth session token. - * - * @param token (required) - * @return ApiResponse<APIKeyOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse paymentInfoWithHttpInfo(String token) throws ApiException { - com.squareup.okhttp.Call call = paymentInfoValidateBeforeCall(token, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Get the Stripe payment information associated with the current google auth session token. (asynchronously) - * - * @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 paymentInfoAsync(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 = paymentInfoValidateBeforeCall(token, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for procureKey - * @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 procureKeyCall(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/procureKey/{token}" - .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 = { - "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 procureKeyValidateBeforeCall(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'token' is set - if (token == null) { - throw new ApiException("Missing the required parameter 'token' when calling procureKey(Async)"); - } - - - com.squareup.okhttp.Call call = procureKeyCall(token, progressListener, progressRequestListener); - return call; - - } - - /** - * Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. - * - * @param token (required) - * @return APIKeyOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIKeyOut procureKey(String token) throws ApiException { - ApiResponse resp = procureKeyWithHttpInfo(token); - return resp.getData(); - } - - /** - * Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. - * - * @param token (required) - * @return ApiResponse<APIKeyOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse procureKeyWithHttpInfo(String token) throws ApiException { - com.squareup.okhttp.Call call = procureKeyValidateBeforeCall(token, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. (asynchronously) - * - * @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 procureKeyAsync(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 = procureKeyValidateBeforeCall(token, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for removeUserAccount - * @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 removeUserAccountCall(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/removeUserAccount/{token}" - .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 = { - "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 removeUserAccountValidateBeforeCall(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'token' is set - if (token == null) { - throw new ApiException("Missing the required parameter 'token' when calling removeUserAccount(Async)"); - } - - - com.squareup.okhttp.Call call = removeUserAccountCall(token, progressListener, progressRequestListener); - return call; - - } - - /** - * Remove the user account. - * - * @param token (required) - * @return APIPlanSubscriptionOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIPlanSubscriptionOut removeUserAccount(String token) throws ApiException { - ApiResponse resp = removeUserAccountWithHttpInfo(token); - return resp.getData(); - } - - /** - * Remove the user account. - * - * @param token (required) - * @return ApiResponse<APIPlanSubscriptionOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse removeUserAccountWithHttpInfo(String token) throws ApiException { - com.squareup.okhttp.Call call = removeUserAccountValidateBeforeCall(token, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Remove the user account. (asynchronously) - * - * @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 removeUserAccountAsync(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 = removeUserAccountValidateBeforeCall(token, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for removeUserAccountOnBehalf - * @param apiKey (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 removeUserAccountOnBehalfCall(String apiKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/removeUserAccountOnBehalf/{apiKey}" - .replaceAll("\\{" + "apiKey" + "\\}", apiClient.escapeString(apiKey.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 removeUserAccountOnBehalfValidateBeforeCall(String apiKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'apiKey' is set - if (apiKey == null) { - throw new ApiException("Missing the required parameter 'apiKey' when calling removeUserAccountOnBehalf(Async)"); - } - - - com.squareup.okhttp.Call call = removeUserAccountOnBehalfCall(apiKey, progressListener, progressRequestListener); - return call; - - } - - /** - * Remove (on behalf) a user account. - * - * @param apiKey (required) - * @return APIPlanSubscriptionOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIPlanSubscriptionOut removeUserAccountOnBehalf(String apiKey) throws ApiException { - ApiResponse resp = removeUserAccountOnBehalfWithHttpInfo(apiKey); - return resp.getData(); - } - - /** - * Remove (on behalf) a user account. - * - * @param apiKey (required) - * @return ApiResponse<APIPlanSubscriptionOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse removeUserAccountOnBehalfWithHttpInfo(String apiKey) throws ApiException { - com.squareup.okhttp.Call call = removeUserAccountOnBehalfValidateBeforeCall(apiKey, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Remove (on behalf) a user account. (asynchronously) - * - * @param apiKey (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 removeUserAccountOnBehalfAsync(String apiKey, 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 = removeUserAccountOnBehalfValidateBeforeCall(apiKey, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for shutdown - * @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 shutdownCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/shutdown"; - - 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 shutdownValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - - com.squareup.okhttp.Call call = shutdownCall(progressListener, progressRequestListener); - return call; - - } - - /** - * Stop learning and shutdown system. - * - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public void shutdown() throws ApiException { - shutdownWithHttpInfo(); - } - - /** - * Stop learning and shutdown system. - * - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse shutdownWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = shutdownValidateBeforeCall(null, null); - return apiClient.execute(call); - } - - /** - * Stop learning and shutdown system. (asynchronously) - * - * @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 shutdownAsync(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 = shutdownValidateBeforeCall(progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); - return call; - } - /** - * Build call for softwareVersion - * @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 softwareVersionCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/softwareVersion"; - - 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 softwareVersionValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - - com.squareup.okhttp.Call call = softwareVersionCall(progressListener, progressRequestListener); - return call; - - } - - /** - * Get the current software version - * - * @return SoftwareVersionOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public SoftwareVersionOut softwareVersion() throws ApiException { - ApiResponse resp = softwareVersionWithHttpInfo(); - return resp.getData(); - } - - /** - * Get the current software version - * - * @return ApiResponse<SoftwareVersionOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse softwareVersionWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = softwareVersionValidateBeforeCall(null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Get the current software version (asynchronously) - * - * @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 softwareVersionAsync(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 = softwareVersionValidateBeforeCall(progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for sourceStats - * @param source (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 sourceStatsCall(String source, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/sourceStats/{source}" - .replaceAll("\\{" + "source" + "\\}", apiClient.escapeString(source.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 sourceStatsValidateBeforeCall(String source, 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 sourceStats(Async)"); - } - - - com.squareup.okhttp.Call call = sourceStatsCall(source, progressListener, progressRequestListener); - return call; - - } - - /** - * Print basic source statistics. - * - * @param source (required) - * @return SystemMetricsOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public SystemMetricsOut sourceStats(String source) throws ApiException { - ApiResponse resp = sourceStatsWithHttpInfo(source); - return resp.getData(); - } - - /** - * Print basic source statistics. - * - * @param source (required) - * @return ApiResponse<SystemMetricsOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse sourceStatsWithHttpInfo(String source) throws ApiException { - com.squareup.okhttp.Call call = sourceStatsValidateBeforeCall(source, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Print basic source statistics. (asynchronously) - * - * @param source (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 sourceStatsAsync(String source, 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 = sourceStatsValidateBeforeCall(source, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for stats - * @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 statsCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/stats"; - - 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 statsValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - - com.squareup.okhttp.Call call = statsCall(progressListener, progressRequestListener); - return call; - - } - - /** - * Print basic system statistics. - * - * @return SystemMetricsOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public SystemMetricsOut stats() throws ApiException { - ApiResponse resp = statsWithHttpInfo(); - return resp.getData(); - } - - /** - * Print basic system statistics. - * - * @return ApiResponse<SystemMetricsOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse statsWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = statsValidateBeforeCall(null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Print basic system statistics. (asynchronously) - * - * @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 statsAsync(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 = statsValidateBeforeCall(progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for stripeConnect - * @param scope (optional) - * @param code (optional) - * @param error (optional) - * @param errorDescription (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 stripeConnectCall(String scope, String code, String error, String errorDescription, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/stripeConnect"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (scope != null) { - localVarQueryParams.addAll(apiClient.parameterToPair("scope", scope)); - } - - if (code != null) { - localVarQueryParams.addAll(apiClient.parameterToPair("code", code)); - } - - if (error != null) { - localVarQueryParams.addAll(apiClient.parameterToPair("error", error)); - } - - if (errorDescription != null) { - localVarQueryParams.addAll(apiClient.parameterToPair("error_description", errorDescription)); - } - - 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 stripeConnectValidateBeforeCall(String scope, String code, String error, String errorDescription, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - - com.squareup.okhttp.Call call = stripeConnectCall(scope, code, error, errorDescription, progressListener, progressRequestListener); - return call; - - } - - /** - * Connects a Stripe Account. - * - * @param scope (optional) - * @param code (optional) - * @param error (optional) - * @param errorDescription (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public void stripeConnect(String scope, String code, String error, String errorDescription) throws ApiException { - stripeConnectWithHttpInfo(scope, code, error, errorDescription); - } - - /** - * Connects a Stripe Account. - * - * @param scope (optional) - * @param code (optional) - * @param error (optional) - * @param errorDescription (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse stripeConnectWithHttpInfo(String scope, String code, String error, String errorDescription) throws ApiException { - com.squareup.okhttp.Call call = stripeConnectValidateBeforeCall(scope, code, error, errorDescription, null, null); - return apiClient.execute(call); - } - - /** - * Connects a Stripe Account. (asynchronously) - * - * @param scope (optional) - * @param code (optional) - * @param error (optional) - * @param errorDescription (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 stripeConnectAsync(String scope, String code, String error, String errorDescription, 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 = stripeConnectValidateBeforeCall(scope, code, error, errorDescription, progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); - return call; - } - /** - * Build call for subscribePlan - * @param planName (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 subscribePlanCall(String planName, 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/subscribePlan/{planName}/{token}" - .replaceAll("\\{" + "planName" + "\\}", apiClient.escapeString(planName.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 = { - "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 subscribePlanValidateBeforeCall(String planName, String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'planName' is set - if (planName == null) { - throw new ApiException("Missing the required parameter 'planName' when calling subscribePlan(Async)"); - } - - // verify the required parameter 'token' is set - if (token == null) { - throw new ApiException("Missing the required parameter 'token' when calling subscribePlan(Async)"); - } - - - com.squareup.okhttp.Call call = subscribePlanCall(planName, token, progressListener, progressRequestListener); - return call; - - } - - /** - * Subscribe to a give API plan, using the user's preferred or default currency. - * - * @param planName (required) - * @param token (required) - * @return APIPlanSubscriptionOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIPlanSubscriptionOut subscribePlan(String planName, String token) throws ApiException { - ApiResponse resp = subscribePlanWithHttpInfo(planName, token); - return resp.getData(); - } - - /** - * Subscribe to a give API plan, using the user's preferred or default currency. - * - * @param planName (required) - * @param token (required) - * @return ApiResponse<APIPlanSubscriptionOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse subscribePlanWithHttpInfo(String planName, String token) throws ApiException { - com.squareup.okhttp.Call call = subscribePlanValidateBeforeCall(planName, token, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Subscribe to a give API plan, using the user's preferred or default currency. (asynchronously) - * - * @param planName (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 subscribePlanAsync(String planName, 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 = subscribePlanValidateBeforeCall(planName, token, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for subscribePlanOnBehalf - * @param planName (required) - * @param apiKey (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 subscribePlanOnBehalfCall(String planName, String apiKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/subscribePlanOnBehalf/{planName}/{apiKey}" - .replaceAll("\\{" + "planName" + "\\}", apiClient.escapeString(planName.toString())) - .replaceAll("\\{" + "apiKey" + "\\}", apiClient.escapeString(apiKey.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 subscribePlanOnBehalfValidateBeforeCall(String planName, String apiKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'planName' is set - if (planName == null) { - throw new ApiException("Missing the required parameter 'planName' when calling subscribePlanOnBehalf(Async)"); - } - - // verify the required parameter 'apiKey' is set - if (apiKey == null) { - throw new ApiException("Missing the required parameter 'apiKey' when calling subscribePlanOnBehalf(Async)"); - } - - - com.squareup.okhttp.Call call = subscribePlanOnBehalfCall(planName, apiKey, progressListener, progressRequestListener); - return call; - - } - - /** - * Subscribe to a give API plan, using the user's preferred or default currency (admin only). - * - * @param planName (required) - * @param apiKey (required) - * @return APIPlanSubscriptionOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIPlanSubscriptionOut subscribePlanOnBehalf(String planName, String apiKey) throws ApiException { - ApiResponse resp = subscribePlanOnBehalfWithHttpInfo(planName, apiKey); - return resp.getData(); - } - - /** - * Subscribe to a give API plan, using the user's preferred or default currency (admin only). - * - * @param planName (required) - * @param apiKey (required) - * @return ApiResponse<APIPlanSubscriptionOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse subscribePlanOnBehalfWithHttpInfo(String planName, String apiKey) throws ApiException { - com.squareup.okhttp.Call call = subscribePlanOnBehalfValidateBeforeCall(planName, apiKey, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Subscribe to a give API plan, using the user's preferred or default currency (admin only). (asynchronously) - * - * @param planName (required) - * @param apiKey (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 subscribePlanOnBehalfAsync(String planName, String apiKey, 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 = subscribePlanOnBehalfValidateBeforeCall(planName, apiKey, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for taxonomyClasses - * @param classifierName (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 taxonomyClassesCall(String classifierName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/taxonomyClasses/{classifierName}" - .replaceAll("\\{" + "classifierName" + "\\}", apiClient.escapeString(classifierName.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 taxonomyClassesValidateBeforeCall(String classifierName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'classifierName' is set - if (classifierName == null) { - throw new ApiException("Missing the required parameter 'classifierName' when calling taxonomyClasses(Async)"); - } - - - com.squareup.okhttp.Call call = taxonomyClassesCall(classifierName, progressListener, progressRequestListener); - return call; - - } - - /** - * Print the taxonomy classes valid for the given classifier. - * - * @param classifierName (required) - * @return APIPlansOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIPlansOut taxonomyClasses(String classifierName) throws ApiException { - ApiResponse resp = taxonomyClassesWithHttpInfo(classifierName); - return resp.getData(); - } - - /** - * Print the taxonomy classes valid for the given classifier. - * - * @param classifierName (required) - * @return ApiResponse<APIPlansOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse taxonomyClassesWithHttpInfo(String classifierName) throws ApiException { - com.squareup.okhttp.Call call = taxonomyClassesValidateBeforeCall(classifierName, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Print the taxonomy classes valid for the given classifier. (asynchronously) - * - * @param classifierName (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 taxonomyClassesAsync(String classifierName, 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 = taxonomyClassesValidateBeforeCall(classifierName, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for updateBillingInfo - * @param token (required) - * @param billingInfoInOut (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 updateBillingInfoCall(String token, BillingInfoInOut billingInfoInOut, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = billingInfoInOut; - - // create path and map variables - String localVarPath = "/api2/json/updateBillingInfo/{token}" - .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 = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json;charset=UTF-8" - }; - 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 updateBillingInfoValidateBeforeCall(String token, BillingInfoInOut billingInfoInOut, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'token' is set - if (token == null) { - throw new ApiException("Missing the required parameter 'token' when calling updateBillingInfo(Async)"); - } - - - com.squareup.okhttp.Call call = updateBillingInfoCall(token, billingInfoInOut, progressListener, progressRequestListener); - return call; - - } - - /** - * Sets or update the billing information (company name, address, phone, vat ID) - * - * @param token (required) - * @param billingInfoInOut (optional) - * @return BillingInfoInOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public BillingInfoInOut updateBillingInfo(String token, BillingInfoInOut billingInfoInOut) throws ApiException { - ApiResponse resp = updateBillingInfoWithHttpInfo(token, billingInfoInOut); - return resp.getData(); - } - - /** - * Sets or update the billing information (company name, address, phone, vat ID) - * - * @param token (required) - * @param billingInfoInOut (optional) - * @return ApiResponse<BillingInfoInOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse updateBillingInfoWithHttpInfo(String token, BillingInfoInOut billingInfoInOut) throws ApiException { - com.squareup.okhttp.Call call = updateBillingInfoValidateBeforeCall(token, billingInfoInOut, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Sets or update the billing information (company name, address, phone, vat ID) (asynchronously) - * - * @param token (required) - * @param billingInfoInOut (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 updateBillingInfoAsync(String token, BillingInfoInOut billingInfoInOut, 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 = updateBillingInfoValidateBeforeCall(token, billingInfoInOut, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for updateLimit - * @param usageLimit (required) - * @param hardOrSoft (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 updateLimitCall(Integer usageLimit, Boolean hardOrSoft, 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/updateLimit/{usageLimit}/{hardOrSoft}/{token}" - .replaceAll("\\{" + "usageLimit" + "\\}", apiClient.escapeString(usageLimit.toString())) - .replaceAll("\\{" + "hardOrSoft" + "\\}", apiClient.escapeString(hardOrSoft.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 = { - "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 updateLimitValidateBeforeCall(Integer usageLimit, Boolean hardOrSoft, String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'usageLimit' is set - if (usageLimit == null) { - throw new ApiException("Missing the required parameter 'usageLimit' when calling updateLimit(Async)"); - } - - // verify the required parameter 'hardOrSoft' is set - if (hardOrSoft == null) { - throw new ApiException("Missing the required parameter 'hardOrSoft' when calling updateLimit(Async)"); - } - - // verify the required parameter 'token' is set - if (token == null) { - throw new ApiException("Missing the required parameter 'token' when calling updateLimit(Async)"); - } - - - com.squareup.okhttp.Call call = updateLimitCall(usageLimit, hardOrSoft, token, progressListener, progressRequestListener); - return call; - - } - - /** - * Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). - * - * @param usageLimit (required) - * @param hardOrSoft (required) - * @param token (required) - * @return APIPeriodUsageOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIPeriodUsageOut updateLimit(Integer usageLimit, Boolean hardOrSoft, String token) throws ApiException { - ApiResponse resp = updateLimitWithHttpInfo(usageLimit, hardOrSoft, token); - return resp.getData(); - } - - /** - * Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). - * - * @param usageLimit (required) - * @param hardOrSoft (required) - * @param token (required) - * @return ApiResponse<APIPeriodUsageOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse updateLimitWithHttpInfo(Integer usageLimit, Boolean hardOrSoft, String token) throws ApiException { - com.squareup.okhttp.Call call = updateLimitValidateBeforeCall(usageLimit, hardOrSoft, token, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). (asynchronously) - * - * @param usageLimit (required) - * @param hardOrSoft (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 updateLimitAsync(Integer usageLimit, Boolean hardOrSoft, 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 = updateLimitValidateBeforeCall(usageLimit, hardOrSoft, token, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for updatePaymentDefault - * @param defautSourceId (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 updatePaymentDefaultCall(String defautSourceId, 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/updatePaymentDefault/{defautSourceId}/{token}" - .replaceAll("\\{" + "defautSourceId" + "\\}", apiClient.escapeString(defautSourceId.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 = { - "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 updatePaymentDefaultValidateBeforeCall(String defautSourceId, String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'defautSourceId' is set - if (defautSourceId == null) { - throw new ApiException("Missing the required parameter 'defautSourceId' when calling updatePaymentDefault(Async)"); - } - - // verify the required parameter 'token' is set - if (token == null) { - throw new ApiException("Missing the required parameter 'token' when calling updatePaymentDefault(Async)"); - } - - - com.squareup.okhttp.Call call = updatePaymentDefaultCall(defautSourceId, token, progressListener, progressRequestListener); - return call; - - } - - /** - * Update the default Stripe card associated with the current google auth session token. - * - * @param defautSourceId (required) - * @param token (required) - * @return APIKeyOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIKeyOut updatePaymentDefault(String defautSourceId, String token) throws ApiException { - ApiResponse resp = updatePaymentDefaultWithHttpInfo(defautSourceId, token); - return resp.getData(); - } - - /** - * Update the default Stripe card associated with the current google auth session token. - * - * @param defautSourceId (required) - * @param token (required) - * @return ApiResponse<APIKeyOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse updatePaymentDefaultWithHttpInfo(String defautSourceId, String token) throws ApiException { - com.squareup.okhttp.Call call = updatePaymentDefaultValidateBeforeCall(defautSourceId, token, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Update the default Stripe card associated with the current google auth session token. (asynchronously) - * - * @param defautSourceId (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 updatePaymentDefaultAsync(String defautSourceId, 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 = updatePaymentDefaultValidateBeforeCall(defautSourceId, token, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for userInfo - * @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 userInfoCall(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/userInfo/{token}" - .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 = { - "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 userInfoValidateBeforeCall(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'token' is set - if (token == null) { - throw new ApiException("Missing the required parameter 'token' when calling userInfo(Async)"); - } - - - com.squareup.okhttp.Call call = userInfoCall(token, progressListener, progressRequestListener); - return call; - - } - - /** - * Get the user profile associated with the current google auth session token. - * - * @param token (required) - * @return APIKeyOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIKeyOut userInfo(String token) throws ApiException { - ApiResponse resp = userInfoWithHttpInfo(token); - return resp.getData(); - } - - /** - * Get the user profile associated with the current google auth session token. - * - * @param token (required) - * @return ApiResponse<APIKeyOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse userInfoWithHttpInfo(String token) throws ApiException { - com.squareup.okhttp.Call call = userInfoValidateBeforeCall(token, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Get the user profile associated with the current google auth session token. (asynchronously) - * - * @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 userInfoAsync(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 = userInfoValidateBeforeCall(token, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for verifyEmail - * @param emailToken (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 verifyEmailCall(String emailToken, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/verifyEmail/{emailToken}" - .replaceAll("\\{" + "emailToken" + "\\}", apiClient.escapeString(emailToken.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 verifyEmailValidateBeforeCall(String emailToken, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'emailToken' is set - if (emailToken == null) { - throw new ApiException("Missing the required parameter 'emailToken' when calling verifyEmail(Async)"); - } - - - com.squareup.okhttp.Call call = verifyEmailCall(emailToken, progressListener, progressRequestListener); - return call; - - } - - /** - * Verifies an email, based on token sent to that email - * - * @param emailToken (required) - * @return APIKeyOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIKeyOut verifyEmail(String emailToken) throws ApiException { - ApiResponse resp = verifyEmailWithHttpInfo(emailToken); - return resp.getData(); - } - - /** - * Verifies an email, based on token sent to that email - * - * @param emailToken (required) - * @return ApiResponse<APIKeyOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse verifyEmailWithHttpInfo(String emailToken) throws ApiException { - com.squareup.okhttp.Call call = verifyEmailValidateBeforeCall(emailToken, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Verifies an email, based on token sent to that email (asynchronously) - * - * @param emailToken (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 verifyEmailAsync(String emailToken, 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 = verifyEmailValidateBeforeCall(emailToken, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for verifyRemoveEmail - * @param emailToken (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 verifyRemoveEmailCall(String emailToken, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/verifyRemoveEmail/{emailToken}" - .replaceAll("\\{" + "emailToken" + "\\}", apiClient.escapeString(emailToken.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 verifyRemoveEmailValidateBeforeCall(String emailToken, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'emailToken' is set - if (emailToken == null) { - throw new ApiException("Missing the required parameter 'emailToken' when calling verifyRemoveEmail(Async)"); - } - - - com.squareup.okhttp.Call call = verifyRemoveEmailCall(emailToken, progressListener, progressRequestListener); - return call; - - } - - /** - * Verifies an email, based on token sent to that email - * - * @param emailToken (required) - * @return APIKeyOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public APIKeyOut verifyRemoveEmail(String emailToken) throws ApiException { - ApiResponse resp = verifyRemoveEmailWithHttpInfo(emailToken); - return resp.getData(); - } - - /** - * Verifies an email, based on token sent to that email - * - * @param emailToken (required) - * @return ApiResponse<APIKeyOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse verifyRemoveEmailWithHttpInfo(String emailToken) throws ApiException { - com.squareup.okhttp.Call call = verifyRemoveEmailValidateBeforeCall(emailToken, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Verifies an email, based on token sent to that email (asynchronously) - * - * @param emailToken (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 verifyRemoveEmailAsync(String emailToken, 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 = verifyRemoveEmailValidateBeforeCall(emailToken, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for vet - * @param source (required) - * @param vetted (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 vetCall(String source, Boolean vetted, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = new Object(); - - // create path and map variables - String localVarPath = "/api2/json/vetting/{source}/{vetted}" - .replaceAll("\\{" + "source" + "\\}", apiClient.escapeString(source.toString())) - .replaceAll("\\{" + "vetted" + "\\}", apiClient.escapeString(vetted.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 vetValidateBeforeCall(String source, Boolean vetted, 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 vet(Async)"); - } - - // verify the required parameter 'vetted' is set - if (vetted == null) { - throw new ApiException("Missing the required parameter 'vetted' when calling vet(Async)"); - } - - - com.squareup.okhttp.Call call = vetCall(source, vetted, progressListener, progressRequestListener); - return call; - - } - - /** - * Vetting of a source. - * - * @param source (required) - * @param vetted (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public void vet(String source, Boolean vetted) throws ApiException { - vetWithHttpInfo(source, vetted); - } - - /** - * Vetting of a source. - * - * @param source (required) - * @param vetted (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse vetWithHttpInfo(String source, Boolean vetted) throws ApiException { - com.squareup.okhttp.Call call = vetValidateBeforeCall(source, vetted, null, null); - return apiClient.execute(call); - } - - /** - * Vetting of a source. (asynchronously) - * - * @param source (required) - * @param vetted (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 vetAsync(String source, Boolean vetted, 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 = vetValidateBeforeCall(source, vetted, progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); - return call; - } } diff --git a/src/main/java/com/namsor/sdk2/api/ChineseApi.java b/src/main/java/com/namsor/sdk2/api/ChineseApi.java index eb7d2818..c89ec355 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,16 +27,20 @@ import java.io.IOException; +import com.namsor.sdk2.model.BatchFirstLastNameGenderIn; import com.namsor.sdk2.model.BatchFirstLastNameGenderedOut; import com.namsor.sdk2.model.BatchFirstLastNameIn; +import com.namsor.sdk2.model.BatchMatchPersonalFirstLastNameIn; import com.namsor.sdk2.model.BatchNameMatchCandidatesOut; +import com.namsor.sdk2.model.BatchNameMatchedOut; import com.namsor.sdk2.model.BatchPersonalNameGenderedOut; import com.namsor.sdk2.model.BatchPersonalNameIn; import com.namsor.sdk2.model.BatchPersonalNameParsedOut; import com.namsor.sdk2.model.FirstLastNameGenderedOut; +import com.namsor.sdk2.model.NameMatchCandidatesOut; +import com.namsor.sdk2.model.NameMatchedOut; import com.namsor.sdk2.model.PersonalNameGenderedOut; import com.namsor.sdk2.model.PersonalNameParsedOut; -import com.namsor.sdk2.model.RomanizedNameOut; import java.lang.reflect.Type; import java.util.ArrayList; @@ -138,11 +142,11 @@ private com.squareup.okhttp.Call chineseNameCandidatesValidateBeforeCall(String * * @param chineseSurnameLatin (required) * @param chineseGivenNameLatin (required) - * @return RomanizedNameOut + * @return NameMatchCandidatesOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RomanizedNameOut chineseNameCandidates(String chineseSurnameLatin, String chineseGivenNameLatin) throws ApiException { - ApiResponse resp = chineseNameCandidatesWithHttpInfo(chineseSurnameLatin, chineseGivenNameLatin); + public NameMatchCandidatesOut chineseNameCandidates(String chineseSurnameLatin, String chineseGivenNameLatin) throws ApiException { + ApiResponse resp = chineseNameCandidatesWithHttpInfo(chineseSurnameLatin, chineseGivenNameLatin); return resp.getData(); } @@ -151,12 +155,12 @@ public RomanizedNameOut chineseNameCandidates(String chineseSurnameLatin, String * * @param chineseSurnameLatin (required) * @param chineseGivenNameLatin (required) - * @return ApiResponse<RomanizedNameOut> + * @return ApiResponse<NameMatchCandidatesOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse chineseNameCandidatesWithHttpInfo(String chineseSurnameLatin, String chineseGivenNameLatin) throws ApiException { + public ApiResponse chineseNameCandidatesWithHttpInfo(String chineseSurnameLatin, String chineseGivenNameLatin) throws ApiException { com.squareup.okhttp.Call call = chineseNameCandidatesValidateBeforeCall(chineseSurnameLatin, chineseGivenNameLatin, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -169,7 +173,7 @@ public ApiResponse chineseNameCandidatesWithHttpInfo(String ch * @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 chineseNameCandidatesAsync(String chineseSurnameLatin, String chineseGivenNameLatin, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call chineseNameCandidatesAsync(String chineseSurnameLatin, String chineseGivenNameLatin, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -191,7 +195,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = chineseNameCandidatesValidateBeforeCall(chineseSurnameLatin, chineseGivenNameLatin, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -313,14 +317,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } /** * Build call for chineseNameCandidatesGenderBatch - * @param batchFirstLastNameIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) + * @param batchFirstLastNameGenderIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (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 chineseNameCandidatesGenderBatchCall(BatchFirstLastNameIn batchFirstLastNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = batchFirstLastNameIn; + public com.squareup.okhttp.Call chineseNameCandidatesGenderBatchCall(BatchFirstLastNameGenderIn batchFirstLastNameGenderIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = batchFirstLastNameGenderIn; // create path and map variables String localVarPath = "/api2/json/chineseNameCandidatesGenderBatch"; @@ -360,10 +364,10 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call chineseNameCandidatesGenderBatchValidateBeforeCall(BatchFirstLastNameIn batchFirstLastNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call chineseNameCandidatesGenderBatchValidateBeforeCall(BatchFirstLastNameGenderIn batchFirstLastNameGenderIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = chineseNameCandidatesGenderBatchCall(batchFirstLastNameIn, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = chineseNameCandidatesGenderBatchCall(batchFirstLastNameGenderIn, progressListener, progressRequestListener); return call; } @@ -371,24 +375,24 @@ private com.squareup.okhttp.Call chineseNameCandidatesGenderBatchValidateBeforeC /** * Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname) ex. Wang Xiaoming. * - * @param batchFirstLastNameIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) + * @param batchFirstLastNameGenderIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) * @return BatchNameMatchCandidatesOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public BatchNameMatchCandidatesOut chineseNameCandidatesGenderBatch(BatchFirstLastNameIn batchFirstLastNameIn) throws ApiException { - ApiResponse resp = chineseNameCandidatesGenderBatchWithHttpInfo(batchFirstLastNameIn); + public BatchNameMatchCandidatesOut chineseNameCandidatesGenderBatch(BatchFirstLastNameGenderIn batchFirstLastNameGenderIn) throws ApiException { + ApiResponse resp = chineseNameCandidatesGenderBatchWithHttpInfo(batchFirstLastNameGenderIn); return resp.getData(); } /** * Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname) ex. Wang Xiaoming. * - * @param batchFirstLastNameIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) + * @param batchFirstLastNameGenderIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) * @return ApiResponse<BatchNameMatchCandidatesOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse chineseNameCandidatesGenderBatchWithHttpInfo(BatchFirstLastNameIn batchFirstLastNameIn) throws ApiException { - com.squareup.okhttp.Call call = chineseNameCandidatesGenderBatchValidateBeforeCall(batchFirstLastNameIn, null, null); + public ApiResponse chineseNameCandidatesGenderBatchWithHttpInfo(BatchFirstLastNameGenderIn batchFirstLastNameGenderIn) throws ApiException { + com.squareup.okhttp.Call call = chineseNameCandidatesGenderBatchValidateBeforeCall(batchFirstLastNameGenderIn, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -396,12 +400,12 @@ public ApiResponse chineseNameCandidatesGenderBatch /** * Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname) ex. Wang Xiaoming. (asynchronously) * - * @param batchFirstLastNameIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) + * @param batchFirstLastNameGenderIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (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 chineseNameCandidatesGenderBatchAsync(BatchFirstLastNameIn batchFirstLastNameIn, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call chineseNameCandidatesGenderBatchAsync(BatchFirstLastNameGenderIn batchFirstLastNameGenderIn, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -422,7 +426,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = chineseNameCandidatesGenderBatchValidateBeforeCall(batchFirstLastNameIn, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = chineseNameCandidatesGenderBatchValidateBeforeCall(batchFirstLastNameGenderIn, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -510,11 +514,11 @@ private com.squareup.okhttp.Call chineseNameGenderCandidatesValidateBeforeCall(S * @param chineseSurnameLatin (required) * @param chineseGivenNameLatin (required) * @param knownGender (required) - * @return RomanizedNameOut + * @return NameMatchCandidatesOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RomanizedNameOut chineseNameGenderCandidates(String chineseSurnameLatin, String chineseGivenNameLatin, String knownGender) throws ApiException { - ApiResponse resp = chineseNameGenderCandidatesWithHttpInfo(chineseSurnameLatin, chineseGivenNameLatin, knownGender); + public NameMatchCandidatesOut chineseNameGenderCandidates(String chineseSurnameLatin, String chineseGivenNameLatin, String knownGender) throws ApiException { + ApiResponse resp = chineseNameGenderCandidatesWithHttpInfo(chineseSurnameLatin, chineseGivenNameLatin, knownGender); return resp.getData(); } @@ -524,12 +528,12 @@ public RomanizedNameOut chineseNameGenderCandidates(String chineseSurnameLatin, * @param chineseSurnameLatin (required) * @param chineseGivenNameLatin (required) * @param knownGender (required) - * @return ApiResponse<RomanizedNameOut> + * @return ApiResponse<NameMatchCandidatesOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse chineseNameGenderCandidatesWithHttpInfo(String chineseSurnameLatin, String chineseGivenNameLatin, String knownGender) throws ApiException { + public ApiResponse chineseNameGenderCandidatesWithHttpInfo(String chineseSurnameLatin, String chineseGivenNameLatin, String knownGender) throws ApiException { com.squareup.okhttp.Call call = chineseNameGenderCandidatesValidateBeforeCall(chineseSurnameLatin, chineseGivenNameLatin, knownGender, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -543,7 +547,7 @@ public ApiResponse chineseNameGenderCandidatesWithHttpInfo(Str * @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 chineseNameGenderCandidatesAsync(String chineseSurnameLatin, String chineseGivenNameLatin, String knownGender, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call chineseNameGenderCandidatesAsync(String chineseSurnameLatin, String chineseGivenNameLatin, String knownGender, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -565,7 +569,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = chineseNameGenderCandidatesValidateBeforeCall(chineseSurnameLatin, chineseGivenNameLatin, knownGender, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -652,11 +656,11 @@ private com.squareup.okhttp.Call chineseNameMatchValidateBeforeCall(String chine * @param chineseSurnameLatin (required) * @param chineseGivenNameLatin (required) * @param chineseName (required) - * @return RomanizedNameOut + * @return NameMatchedOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RomanizedNameOut chineseNameMatch(String chineseSurnameLatin, String chineseGivenNameLatin, String chineseName) throws ApiException { - ApiResponse resp = chineseNameMatchWithHttpInfo(chineseSurnameLatin, chineseGivenNameLatin, chineseName); + public NameMatchedOut chineseNameMatch(String chineseSurnameLatin, String chineseGivenNameLatin, String chineseName) throws ApiException { + ApiResponse resp = chineseNameMatchWithHttpInfo(chineseSurnameLatin, chineseGivenNameLatin, chineseName); return resp.getData(); } @@ -666,12 +670,12 @@ public RomanizedNameOut chineseNameMatch(String chineseSurnameLatin, String chin * @param chineseSurnameLatin (required) * @param chineseGivenNameLatin (required) * @param chineseName (required) - * @return ApiResponse<RomanizedNameOut> + * @return ApiResponse<NameMatchedOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse chineseNameMatchWithHttpInfo(String chineseSurnameLatin, String chineseGivenNameLatin, String chineseName) throws ApiException { + public ApiResponse chineseNameMatchWithHttpInfo(String chineseSurnameLatin, String chineseGivenNameLatin, String chineseName) throws ApiException { com.squareup.okhttp.Call call = chineseNameMatchValidateBeforeCall(chineseSurnameLatin, chineseGivenNameLatin, chineseName, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -685,7 +689,7 @@ public ApiResponse chineseNameMatchWithHttpInfo(String chinese * @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 chineseNameMatchAsync(String chineseSurnameLatin, String chineseGivenNameLatin, String chineseName, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call chineseNameMatchAsync(String chineseSurnameLatin, String chineseGivenNameLatin, String chineseName, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -707,20 +711,20 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = chineseNameMatchValidateBeforeCall(chineseSurnameLatin, chineseGivenNameLatin, chineseName, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** * Build call for chineseNameMatchBatch - * @param batchFirstLastNameIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) + * @param batchMatchPersonalFirstLastNameIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (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 chineseNameMatchBatchCall(BatchFirstLastNameIn batchFirstLastNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = batchFirstLastNameIn; + public com.squareup.okhttp.Call chineseNameMatchBatchCall(BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = batchMatchPersonalFirstLastNameIn; // create path and map variables String localVarPath = "/api2/json/chineseNameMatchBatch"; @@ -760,10 +764,10 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call chineseNameMatchBatchValidateBeforeCall(BatchFirstLastNameIn batchFirstLastNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call chineseNameMatchBatchValidateBeforeCall(BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = chineseNameMatchBatchCall(batchFirstLastNameIn, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = chineseNameMatchBatchCall(batchMatchPersonalFirstLastNameIn, progressListener, progressRequestListener); return call; } @@ -771,37 +775,37 @@ private com.squareup.okhttp.Call chineseNameMatchBatchValidateBeforeCall(BatchFi /** * Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname), ex. Wang Xiaoming * - * @param batchFirstLastNameIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) - * @return BatchNameMatchCandidatesOut + * @param batchMatchPersonalFirstLastNameIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) + * @return BatchNameMatchedOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public BatchNameMatchCandidatesOut chineseNameMatchBatch(BatchFirstLastNameIn batchFirstLastNameIn) throws ApiException { - ApiResponse resp = chineseNameMatchBatchWithHttpInfo(batchFirstLastNameIn); + public BatchNameMatchedOut chineseNameMatchBatch(BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn) throws ApiException { + ApiResponse resp = chineseNameMatchBatchWithHttpInfo(batchMatchPersonalFirstLastNameIn); return resp.getData(); } /** * Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname), ex. Wang Xiaoming * - * @param batchFirstLastNameIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) - * @return ApiResponse<BatchNameMatchCandidatesOut> + * @param batchMatchPersonalFirstLastNameIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) + * @return ApiResponse<BatchNameMatchedOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse chineseNameMatchBatchWithHttpInfo(BatchFirstLastNameIn batchFirstLastNameIn) throws ApiException { - com.squareup.okhttp.Call call = chineseNameMatchBatchValidateBeforeCall(batchFirstLastNameIn, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse chineseNameMatchBatchWithHttpInfo(BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn) throws ApiException { + com.squareup.okhttp.Call call = chineseNameMatchBatchValidateBeforeCall(batchMatchPersonalFirstLastNameIn, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** * Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname), ex. Wang Xiaoming (asynchronously) * - * @param batchFirstLastNameIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) + * @param batchMatchPersonalFirstLastNameIn A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (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 chineseNameMatchBatchAsync(BatchFirstLastNameIn batchFirstLastNameIn, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call chineseNameMatchBatchAsync(BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -822,8 +826,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = chineseNameMatchBatchValidateBeforeCall(batchFirstLastNameIn, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = chineseNameMatchBatchValidateBeforeCall(batchMatchPersonalFirstLastNameIn, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/com/namsor/sdk2/api/GeneralApi.java b/src/main/java/com/namsor/sdk2/api/GeneralApi.java index 713a4504..e8411559 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.14 + * OpenAPI spec version: 2.0.15 * 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 223a4466..c50046ef 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,16 +27,21 @@ import java.io.IOException; +import com.namsor.sdk2.model.BatchFirstLastNameGenderIn; import com.namsor.sdk2.model.BatchFirstLastNameGenderedOut; import com.namsor.sdk2.model.BatchFirstLastNameIn; +import com.namsor.sdk2.model.BatchMatchPersonalFirstLastNameIn; import com.namsor.sdk2.model.BatchNameMatchCandidatesOut; +import com.namsor.sdk2.model.BatchNameMatchedOut; import com.namsor.sdk2.model.BatchPersonalNameGenderedOut; import com.namsor.sdk2.model.BatchPersonalNameIn; import com.namsor.sdk2.model.BatchPersonalNameParsedOut; +import com.namsor.sdk2.model.FeedbackLoopOut; import com.namsor.sdk2.model.FirstLastNameGenderedOut; +import com.namsor.sdk2.model.NameMatchCandidatesOut; +import com.namsor.sdk2.model.NameMatchedOut; import com.namsor.sdk2.model.PersonalNameGenderedOut; import com.namsor.sdk2.model.PersonalNameParsedOut; -import com.namsor.sdk2.model.RomanizedNameOut; import java.lang.reflect.Type; import java.util.ArrayList; @@ -551,14 +556,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } /** * Build call for japaneseNameGenderKanjiCandidatesBatch - * @param batchFirstLastNameIn A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender (optional) + * @param batchFirstLastNameGenderIn A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender (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 japaneseNameGenderKanjiCandidatesBatchCall(BatchFirstLastNameIn batchFirstLastNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = batchFirstLastNameIn; + public com.squareup.okhttp.Call japaneseNameGenderKanjiCandidatesBatchCall(BatchFirstLastNameGenderIn batchFirstLastNameGenderIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = batchFirstLastNameGenderIn; // create path and map variables String localVarPath = "/api2/json/japaneseNameGenderKanjiCandidatesBatch"; @@ -598,10 +603,10 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call japaneseNameGenderKanjiCandidatesBatchValidateBeforeCall(BatchFirstLastNameIn batchFirstLastNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call japaneseNameGenderKanjiCandidatesBatchValidateBeforeCall(BatchFirstLastNameGenderIn batchFirstLastNameGenderIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = japaneseNameGenderKanjiCandidatesBatchCall(batchFirstLastNameIn, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = japaneseNameGenderKanjiCandidatesBatchCall(batchFirstLastNameGenderIn, progressListener, progressRequestListener); return call; } @@ -609,24 +614,24 @@ private com.squareup.okhttp.Call japaneseNameGenderKanjiCandidatesBatchValidateB /** * Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname) with KNOWN gender, ex. Yamamoto Sanae * - * @param batchFirstLastNameIn A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender (optional) + * @param batchFirstLastNameGenderIn A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender (optional) * @return BatchNameMatchCandidatesOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public BatchNameMatchCandidatesOut japaneseNameGenderKanjiCandidatesBatch(BatchFirstLastNameIn batchFirstLastNameIn) throws ApiException { - ApiResponse resp = japaneseNameGenderKanjiCandidatesBatchWithHttpInfo(batchFirstLastNameIn); + public BatchNameMatchCandidatesOut japaneseNameGenderKanjiCandidatesBatch(BatchFirstLastNameGenderIn batchFirstLastNameGenderIn) throws ApiException { + ApiResponse resp = japaneseNameGenderKanjiCandidatesBatchWithHttpInfo(batchFirstLastNameGenderIn); return resp.getData(); } /** * Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname) with KNOWN gender, ex. Yamamoto Sanae * - * @param batchFirstLastNameIn A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender (optional) + * @param batchFirstLastNameGenderIn A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender (optional) * @return ApiResponse<BatchNameMatchCandidatesOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse japaneseNameGenderKanjiCandidatesBatchWithHttpInfo(BatchFirstLastNameIn batchFirstLastNameIn) throws ApiException { - com.squareup.okhttp.Call call = japaneseNameGenderKanjiCandidatesBatchValidateBeforeCall(batchFirstLastNameIn, null, null); + public ApiResponse japaneseNameGenderKanjiCandidatesBatchWithHttpInfo(BatchFirstLastNameGenderIn batchFirstLastNameGenderIn) throws ApiException { + com.squareup.okhttp.Call call = japaneseNameGenderKanjiCandidatesBatchValidateBeforeCall(batchFirstLastNameGenderIn, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -634,12 +639,12 @@ public ApiResponse japaneseNameGenderKanjiCandidate /** * Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname) with KNOWN gender, ex. Yamamoto Sanae (asynchronously) * - * @param batchFirstLastNameIn A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender (optional) + * @param batchFirstLastNameGenderIn A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender (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 japaneseNameGenderKanjiCandidatesBatchAsync(BatchFirstLastNameIn batchFirstLastNameIn, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call japaneseNameGenderKanjiCandidatesBatchAsync(BatchFirstLastNameGenderIn batchFirstLastNameGenderIn, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -660,7 +665,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = japaneseNameGenderKanjiCandidatesBatchValidateBeforeCall(batchFirstLastNameIn, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = japaneseNameGenderKanjiCandidatesBatchValidateBeforeCall(batchFirstLastNameGenderIn, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -748,11 +753,11 @@ private com.squareup.okhttp.Call japaneseNameKanjiCandidatesValidateBeforeCall(S * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) * @param knownGender (required) - * @return RomanizedNameOut + * @return NameMatchCandidatesOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RomanizedNameOut japaneseNameKanjiCandidates(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender) throws ApiException { - ApiResponse resp = japaneseNameKanjiCandidatesWithHttpInfo(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender); + public NameMatchCandidatesOut japaneseNameKanjiCandidates(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender) throws ApiException { + ApiResponse resp = japaneseNameKanjiCandidatesWithHttpInfo(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender); return resp.getData(); } @@ -762,12 +767,12 @@ public RomanizedNameOut japaneseNameKanjiCandidates(String japaneseSurnameLatin, * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) * @param knownGender (required) - * @return ApiResponse<RomanizedNameOut> + * @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 { + public ApiResponse japaneseNameKanjiCandidatesWithHttpInfo(String japaneseSurnameLatin, String japaneseGivenNameLatin, String knownGender) throws ApiException { com.squareup.okhttp.Call call = japaneseNameKanjiCandidatesValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -781,7 +786,7 @@ public ApiResponse japaneseNameKanjiCandidatesWithHttpInfo(Str * @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, String knownGender, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -803,7 +808,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = japaneseNameKanjiCandidatesValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -882,11 +887,11 @@ private com.squareup.okhttp.Call japaneseNameKanjiCandidates1ValidateBeforeCall( * * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) - * @return RomanizedNameOut + * @return NameMatchCandidatesOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RomanizedNameOut japaneseNameKanjiCandidates1(String japaneseSurnameLatin, String japaneseGivenNameLatin) throws ApiException { - ApiResponse resp = japaneseNameKanjiCandidates1WithHttpInfo(japaneseSurnameLatin, japaneseGivenNameLatin); + public NameMatchCandidatesOut japaneseNameKanjiCandidates1(String japaneseSurnameLatin, String japaneseGivenNameLatin) throws ApiException { + ApiResponse resp = japaneseNameKanjiCandidates1WithHttpInfo(japaneseSurnameLatin, japaneseGivenNameLatin); return resp.getData(); } @@ -895,12 +900,12 @@ public RomanizedNameOut japaneseNameKanjiCandidates1(String japaneseSurnameLatin * * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) - * @return ApiResponse<RomanizedNameOut> + * @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 { + public ApiResponse japaneseNameKanjiCandidates1WithHttpInfo(String japaneseSurnameLatin, String japaneseGivenNameLatin) throws ApiException { com.squareup.okhttp.Call call = japaneseNameKanjiCandidates1ValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -913,7 +918,7 @@ public ApiResponse japaneseNameKanjiCandidates1WithHttpInfo(St * @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, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -935,7 +940,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = japaneseNameKanjiCandidates1ValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -1130,11 +1135,11 @@ private com.squareup.okhttp.Call japaneseNameLatinCandidatesValidateBeforeCall(S * * @param japaneseSurnameKanji (required) * @param japaneseGivenNameKanji (required) - * @return RomanizedNameOut + * @return NameMatchCandidatesOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RomanizedNameOut japaneseNameLatinCandidates(String japaneseSurnameKanji, String japaneseGivenNameKanji) throws ApiException { - ApiResponse resp = japaneseNameLatinCandidatesWithHttpInfo(japaneseSurnameKanji, japaneseGivenNameKanji); + public NameMatchCandidatesOut japaneseNameLatinCandidates(String japaneseSurnameKanji, String japaneseGivenNameKanji) throws ApiException { + ApiResponse resp = japaneseNameLatinCandidatesWithHttpInfo(japaneseSurnameKanji, japaneseGivenNameKanji); return resp.getData(); } @@ -1143,12 +1148,12 @@ public RomanizedNameOut japaneseNameLatinCandidates(String japaneseSurnameKanji, * * @param japaneseSurnameKanji (required) * @param japaneseGivenNameKanji (required) - * @return ApiResponse<RomanizedNameOut> + * @return ApiResponse<NameMatchCandidatesOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse japaneseNameLatinCandidatesWithHttpInfo(String japaneseSurnameKanji, String japaneseGivenNameKanji) throws ApiException { + public ApiResponse japaneseNameLatinCandidatesWithHttpInfo(String japaneseSurnameKanji, String japaneseGivenNameKanji) throws ApiException { com.squareup.okhttp.Call call = japaneseNameLatinCandidatesValidateBeforeCall(japaneseSurnameKanji, japaneseGivenNameKanji, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1161,7 +1166,7 @@ public ApiResponse japaneseNameLatinCandidatesWithHttpInfo(Str * @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 japaneseNameLatinCandidatesAsync(String japaneseSurnameKanji, String japaneseGivenNameKanji, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call japaneseNameLatinCandidatesAsync(String japaneseSurnameKanji, String japaneseGivenNameKanji, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1183,7 +1188,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = japaneseNameLatinCandidatesValidateBeforeCall(japaneseSurnameKanji, japaneseGivenNameKanji, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -1386,11 +1391,11 @@ private com.squareup.okhttp.Call japaneseNameMatchValidateBeforeCall(String japa * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) * @param japaneseName (required) - * @return RomanizedNameOut + * @return NameMatchedOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RomanizedNameOut japaneseNameMatch(String japaneseSurnameLatin, String japaneseGivenNameLatin, String japaneseName) throws ApiException { - ApiResponse resp = japaneseNameMatchWithHttpInfo(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName); + public NameMatchedOut japaneseNameMatch(String japaneseSurnameLatin, String japaneseGivenNameLatin, String japaneseName) throws ApiException { + ApiResponse resp = japaneseNameMatchWithHttpInfo(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName); return resp.getData(); } @@ -1400,12 +1405,12 @@ public RomanizedNameOut japaneseNameMatch(String japaneseSurnameLatin, String ja * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) * @param japaneseName (required) - * @return ApiResponse<RomanizedNameOut> + * @return ApiResponse<NameMatchedOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse japaneseNameMatchWithHttpInfo(String japaneseSurnameLatin, String japaneseGivenNameLatin, String japaneseName) throws ApiException { + public ApiResponse japaneseNameMatchWithHttpInfo(String japaneseSurnameLatin, String japaneseGivenNameLatin, String japaneseName) throws ApiException { com.squareup.okhttp.Call call = japaneseNameMatchValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1419,7 +1424,7 @@ public ApiResponse japaneseNameMatchWithHttpInfo(String japane * @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 japaneseNameMatchAsync(String japaneseSurnameLatin, String japaneseGivenNameLatin, String japaneseName, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call japaneseNameMatchAsync(String japaneseSurnameLatin, String japaneseGivenNameLatin, String japaneseName, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1441,20 +1446,20 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = japaneseNameMatchValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** * Build call for japaneseNameMatchBatch - * @param batchFirstLastNameIn A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname (optional) + * @param batchMatchPersonalFirstLastNameIn A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname (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 japaneseNameMatchBatchCall(BatchFirstLastNameIn batchFirstLastNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = batchFirstLastNameIn; + public com.squareup.okhttp.Call japaneseNameMatchBatchCall(BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = batchMatchPersonalFirstLastNameIn; // create path and map variables String localVarPath = "/api2/json/japaneseNameMatchBatch"; @@ -1494,10 +1499,10 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call japaneseNameMatchBatchValidateBeforeCall(BatchFirstLastNameIn batchFirstLastNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call japaneseNameMatchBatchValidateBeforeCall(BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = japaneseNameMatchBatchCall(batchFirstLastNameIn, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = japaneseNameMatchBatchCall(batchMatchPersonalFirstLastNameIn, progressListener, progressRequestListener); return call; } @@ -1505,37 +1510,37 @@ private com.squareup.okhttp.Call japaneseNameMatchBatchValidateBeforeCall(BatchF /** * Return a score for matching a list of Japanese names in KANJI ex. 山本 早苗 with romanized names ex. Yamamoto Sanae * - * @param batchFirstLastNameIn A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname (optional) - * @return BatchNameMatchCandidatesOut + * @param batchMatchPersonalFirstLastNameIn A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname (optional) + * @return BatchNameMatchedOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public BatchNameMatchCandidatesOut japaneseNameMatchBatch(BatchFirstLastNameIn batchFirstLastNameIn) throws ApiException { - ApiResponse resp = japaneseNameMatchBatchWithHttpInfo(batchFirstLastNameIn); + public BatchNameMatchedOut japaneseNameMatchBatch(BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn) throws ApiException { + ApiResponse resp = japaneseNameMatchBatchWithHttpInfo(batchMatchPersonalFirstLastNameIn); return resp.getData(); } /** * Return a score for matching a list of Japanese names in KANJI ex. 山本 早苗 with romanized names ex. Yamamoto Sanae * - * @param batchFirstLastNameIn A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname (optional) - * @return ApiResponse<BatchNameMatchCandidatesOut> + * @param batchMatchPersonalFirstLastNameIn A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname (optional) + * @return ApiResponse<BatchNameMatchedOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse japaneseNameMatchBatchWithHttpInfo(BatchFirstLastNameIn batchFirstLastNameIn) throws ApiException { - com.squareup.okhttp.Call call = japaneseNameMatchBatchValidateBeforeCall(batchFirstLastNameIn, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse japaneseNameMatchBatchWithHttpInfo(BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn) throws ApiException { + com.squareup.okhttp.Call call = japaneseNameMatchBatchValidateBeforeCall(batchMatchPersonalFirstLastNameIn, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** * Return a score for matching a list of Japanese names in KANJI ex. 山本 早苗 with romanized names ex. Yamamoto Sanae (asynchronously) * - * @param batchFirstLastNameIn A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname (optional) + * @param batchMatchPersonalFirstLastNameIn A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname (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 japaneseNameMatchBatchAsync(BatchFirstLastNameIn batchFirstLastNameIn, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call japaneseNameMatchBatchAsync(BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1556,8 +1561,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = japaneseNameMatchBatchValidateBeforeCall(batchFirstLastNameIn, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = japaneseNameMatchBatchValidateBeforeCall(batchMatchPersonalFirstLastNameIn, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -1644,11 +1649,11 @@ private com.squareup.okhttp.Call japaneseNameMatchFeedbackLoopValidateBeforeCall * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) * @param japaneseName (required) - * @return RomanizedNameOut + * @return FeedbackLoopOut * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RomanizedNameOut japaneseNameMatchFeedbackLoop(String japaneseSurnameLatin, String japaneseGivenNameLatin, String japaneseName) throws ApiException { - ApiResponse resp = japaneseNameMatchFeedbackLoopWithHttpInfo(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName); + public FeedbackLoopOut japaneseNameMatchFeedbackLoop(String japaneseSurnameLatin, String japaneseGivenNameLatin, String japaneseName) throws ApiException { + ApiResponse resp = japaneseNameMatchFeedbackLoopWithHttpInfo(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName); return resp.getData(); } @@ -1658,12 +1663,12 @@ public RomanizedNameOut japaneseNameMatchFeedbackLoop(String japaneseSurnameLati * @param japaneseSurnameLatin (required) * @param japaneseGivenNameLatin (required) * @param japaneseName (required) - * @return ApiResponse<RomanizedNameOut> + * @return ApiResponse<FeedbackLoopOut> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse japaneseNameMatchFeedbackLoopWithHttpInfo(String japaneseSurnameLatin, String japaneseGivenNameLatin, String japaneseName) throws ApiException { + public ApiResponse japaneseNameMatchFeedbackLoopWithHttpInfo(String japaneseSurnameLatin, String japaneseGivenNameLatin, String japaneseName) throws ApiException { com.squareup.okhttp.Call call = japaneseNameMatchFeedbackLoopValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1677,7 +1682,7 @@ public ApiResponse japaneseNameMatchFeedbackLoopWithHttpInfo(S * @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 japaneseNameMatchFeedbackLoopAsync(String japaneseSurnameLatin, String japaneseGivenNameLatin, String japaneseName, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call japaneseNameMatchFeedbackLoopAsync(String japaneseSurnameLatin, String japaneseGivenNameLatin, String japaneseName, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1699,7 +1704,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = japaneseNameMatchFeedbackLoopValidateBeforeCall(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 0810864a..70762357 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -36,8 +36,6 @@ import com.namsor.sdk2.model.BatchFirstLastNameIn; import com.namsor.sdk2.model.BatchFirstLastNameOriginedOut; import com.namsor.sdk2.model.BatchFirstLastNameUSRaceEthnicityOut; -import com.namsor.sdk2.model.BatchParsedFullNameGeoIn; -import com.namsor.sdk2.model.BatchParsedFullNameIn; import com.namsor.sdk2.model.BatchPersonalNameGenderedOut; import com.namsor.sdk2.model.BatchPersonalNameGeoIn; import com.namsor.sdk2.model.BatchPersonalNameGeoOut; @@ -2587,238 +2585,6 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } - /** - * Build call for parsedGenderBatch - * @param batchParsedFullNameIn 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 parsedGenderBatchCall(BatchParsedFullNameIn batchParsedFullNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = batchParsedFullNameIn; - - // create path and map variables - String localVarPath = "/api2/json/parsedGenderBatch"; - - 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 parsedGenderBatchValidateBeforeCall(BatchParsedFullNameIn batchParsedFullNameIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - - com.squareup.okhttp.Call call = parsedGenderBatchCall(batchParsedFullNameIn, progressListener, progressRequestListener); - return call; - - } - - /** - * Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. - * - * @param batchParsedFullNameIn A list of personal names (optional) - * @return BatchFirstLastNameGenderedOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public BatchFirstLastNameGenderedOut parsedGenderBatch(BatchParsedFullNameIn batchParsedFullNameIn) throws ApiException { - ApiResponse resp = parsedGenderBatchWithHttpInfo(batchParsedFullNameIn); - return resp.getData(); - } - - /** - * Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. - * - * @param batchParsedFullNameIn A list of personal names (optional) - * @return ApiResponse<BatchFirstLastNameGenderedOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse parsedGenderBatchWithHttpInfo(BatchParsedFullNameIn batchParsedFullNameIn) throws ApiException { - com.squareup.okhttp.Call call = parsedGenderBatchValidateBeforeCall(batchParsedFullNameIn, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. (asynchronously) - * - * @param batchParsedFullNameIn 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 parsedGenderBatchAsync(BatchParsedFullNameIn batchParsedFullNameIn, 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 = parsedGenderBatchValidateBeforeCall(batchParsedFullNameIn, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for parsedGenderGeoBatch - * @param batchParsedFullNameGeoIn 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 parsedGenderGeoBatchCall(BatchParsedFullNameGeoIn batchParsedFullNameGeoIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = batchParsedFullNameGeoIn; - - // create path and map variables - String localVarPath = "/api2/json/parsedGenderGeoBatch"; - - 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 parsedGenderGeoBatchValidateBeforeCall(BatchParsedFullNameGeoIn batchParsedFullNameGeoIn, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - - com.squareup.okhttp.Call call = parsedGenderGeoBatchCall(batchParsedFullNameGeoIn, progressListener, progressRequestListener); - return call; - - } - - /** - * Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. - * - * @param batchParsedFullNameGeoIn A list of personal names (optional) - * @return BatchFirstLastNameGenderedOut - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public BatchFirstLastNameGenderedOut parsedGenderGeoBatch(BatchParsedFullNameGeoIn batchParsedFullNameGeoIn) throws ApiException { - ApiResponse resp = parsedGenderGeoBatchWithHttpInfo(batchParsedFullNameGeoIn); - return resp.getData(); - } - - /** - * Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. - * - * @param batchParsedFullNameGeoIn A list of personal names (optional) - * @return ApiResponse<BatchFirstLastNameGenderedOut> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse parsedGenderGeoBatchWithHttpInfo(BatchParsedFullNameGeoIn batchParsedFullNameGeoIn) throws ApiException { - com.squareup.okhttp.Call call = parsedGenderGeoBatchValidateBeforeCall(batchParsedFullNameGeoIn, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. (asynchronously) - * - * @param batchParsedFullNameGeoIn 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 parsedGenderGeoBatchAsync(BatchParsedFullNameGeoIn batchParsedFullNameGeoIn, 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 = parsedGenderGeoBatchValidateBeforeCall(batchParsedFullNameGeoIn, 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 a08065a0..b54fd460 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.14 + * OpenAPI spec version: 2.0.15 * 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 fe17af9d..9ef9b3b5 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.14 + * OpenAPI spec version: 2.0.15 * 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 b0c5bf0b..b3a21ab9 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.14 + * OpenAPI spec version: 2.0.15 * 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.14/java"); + setUserAgent("OpenAPI-Generator/2.0.15/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 e3346ab3..bece2b6e 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 aab0430c..f165f044 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.14 + * OpenAPI spec version: 2.0.15 * 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 88753ba4..06679d23 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 353f87de..06fccb9d 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.14 + * OpenAPI spec version: 2.0.15 * 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 6a4daeca..09431d7f 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.14 + * OpenAPI spec version: 2.0.15 * 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 47bef956..afa37f7d 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 aab4cf4a..67857352 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.14 + * OpenAPI spec version: 2.0.15 * 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 5340779a..c6bfb69f 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.14 + * OpenAPI spec version: 2.0.15 * 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 a47c4032..02a30677 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 e318782f..575f809f 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 25242e3b..4afb613f 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.14 + * OpenAPI spec version: 2.0.15 * 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 f12ad651..a53fb9b1 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.14 + * OpenAPI spec version: 2.0.15 * 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 ec09c0a2..4934150d 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 f7f5b4b5..c30b97c3 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.14 + * OpenAPI spec version: 2.0.15 * 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 cb08a8d9..416d8eca 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,9 +25,10 @@ import java.io.IOException; /** - * APIBillingPeriodUsageOut + * The current billing period. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class APIBillingPeriodUsageOut { public static final String SERIALIZED_NAME_API_KEY = "apiKey"; @SerializedName(SERIALIZED_NAME_API_KEY) @@ -75,10 +76,10 @@ public APIBillingPeriodUsageOut apiKey(String apiKey) { } /** - * Get apiKey + * User API Key. * @return apiKey **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "User API Key.") public String getApiKey() { return apiKey; } @@ -93,10 +94,10 @@ public APIBillingPeriodUsageOut subscriptionStarted(Long subscriptionStarted) { } /** - * Get subscriptionStarted + * Datetime when the user subscribed to the plan. * @return subscriptionStarted **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Datetime when the user subscribed to the plan.") public Long getSubscriptionStarted() { return subscriptionStarted; } @@ -111,10 +112,10 @@ public APIBillingPeriodUsageOut periodStarted(Long periodStarted) { } /** - * Get periodStarted + * Datetime when the the plan's current period started. * @return periodStarted **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Datetime when the the plan's current period started.") public Long getPeriodStarted() { return periodStarted; } @@ -129,10 +130,10 @@ public APIBillingPeriodUsageOut periodEnded(Long periodEnded) { } /** - * Get periodEnded + * Datetime when the the plan's current period endend. * @return periodEnded **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Datetime when the the plan's current period endend.") public Long getPeriodEnded() { return periodEnded; } @@ -147,10 +148,10 @@ public APIBillingPeriodUsageOut stripeCurrentPeriodEnd(Long stripeCurrentPeriodE } /** - * Get stripeCurrentPeriodEnd + * Datetime when the the plan's current period endend (in Stripe). Internal and Stripe periodicity should ~coincide. * @return stripeCurrentPeriodEnd **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Datetime when the the plan's current period endend (in Stripe). Internal and Stripe periodicity should ~coincide.") public Long getStripeCurrentPeriodEnd() { return stripeCurrentPeriodEnd; } @@ -165,10 +166,10 @@ public APIBillingPeriodUsageOut stripeCurrentPeriodStart(Long stripeCurrentPerio } /** - * Get stripeCurrentPeriodStart + * Datetime when the the plan's current period started (in Stripe). Internal and Stripe periodicity should ~coincide. * @return stripeCurrentPeriodStart **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Datetime when the the plan's current period started (in Stripe). Internal and Stripe periodicity should ~coincide.") public Long getStripeCurrentPeriodStart() { return stripeCurrentPeriodStart; } @@ -183,10 +184,10 @@ public APIBillingPeriodUsageOut billingStatus(String billingStatus) { } /** - * Get billingStatus + * Current period billing status ex OPEN. * @return billingStatus **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Current period billing status ex OPEN.") public String getBillingStatus() { return billingStatus; } @@ -201,10 +202,10 @@ public APIBillingPeriodUsageOut usage(Long usage) { } /** - * Get usage + * Current period usage in units (NB some API endpoints use more than one unit). * @return usage **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Current period usage in units (NB some API endpoints use more than one unit).") public Long getUsage() { return usage; } @@ -219,10 +220,10 @@ public APIBillingPeriodUsageOut softLimit(Long softLimit) { } /** - * Get softLimit + * Current period soft limit (reaching the limit sends an email notification). * @return softLimit **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Current period soft limit (reaching the limit sends an email notification).") public Long getSoftLimit() { return softLimit; } @@ -237,10 +238,10 @@ public APIBillingPeriodUsageOut hardLimit(Long hardLimit) { } /** - * Get hardLimit + * Current period hard limit (reaching the limit sends an email notification and blocks the API Key). * @return hardLimit **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Current period hard limit (reaching the limit sends an email notification and blocks the API Key).") public Long getHardLimit() { return hardLimit; } diff --git a/src/main/java/com/namsor/sdk2/model/APIClassifierOut.java b/src/main/java/com/namsor/sdk2/model/APIClassifierOut.java index bfe86c71..61bd7596 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,9 +25,10 @@ import java.io.IOException; /** - * APIClassifierOut + * The list of classifiers and versions. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class APIClassifierOut { public static final String SERIALIZED_NAME_CLASSIFIER_NAME = "classifierName"; @SerializedName(SERIALIZED_NAME_CLASSIFIER_NAME) @@ -55,10 +56,10 @@ public APIClassifierOut classifierName(String classifierName) { } /** - * Get classifierName + * The classifier name * @return classifierName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The classifier name") public String getClassifierName() { return classifierName; } @@ -73,10 +74,10 @@ public APIClassifierOut serving(Boolean serving) { } /** - * Get serving + * True if the classifier is serving requests (has reached minimal learning, is not shutting down) * @return serving **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "True if the classifier is serving requests (has reached minimal learning, is not shutting down)") public Boolean getServing() { return serving; } @@ -91,10 +92,10 @@ public APIClassifierOut learning(Boolean learning) { } /** - * Get learning + * True if the classifier is learning * @return learning **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "True if the classifier is learning") public Boolean getLearning() { return learning; } @@ -109,10 +110,10 @@ public APIClassifierOut shuttingDown(Boolean shuttingDown) { } /** - * Get shuttingDown + * True if the classifier is shutting down * @return shuttingDown **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "True if the classifier is shutting down") public Boolean getShuttingDown() { return shuttingDown; } @@ -127,10 +128,10 @@ public APIClassifierOut probabilityCalibrated(Boolean probabilityCalibrated) { } /** - * Get probabilityCalibrated + * True if the classifier has finished the initial learning and calibrated probabilities (meanwhile, during initial learning, probabilities will be equal to -1) * @return probabilityCalibrated **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "True if the classifier has finished the initial learning and calibrated probabilities (meanwhile, during initial learning, probabilities will be equal to -1)") public Boolean getProbabilityCalibrated() { return probabilityCalibrated; } diff --git a/src/main/java/com/namsor/sdk2/model/APIClassifierTaxonomyOut.java b/src/main/java/com/namsor/sdk2/model/APIClassifierTaxonomyOut.java index 7fcdd600..f45e3584 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class APIClassifierTaxonomyOut { public static final String SERIALIZED_NAME_CLASSIFIER_NAME = "classifierName"; @SerializedName(SERIALIZED_NAME_CLASSIFIER_NAME) @@ -45,10 +45,10 @@ public APIClassifierTaxonomyOut classifierName(String classifierName) { } /** - * Get classifierName + * Name of the classifier as per apiStatus (corresponds also to the name of the service in apiServices) * @return classifierName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Name of the classifier as per apiStatus (corresponds also to the name of the service in apiServices)") public String getClassifierName() { return classifierName; } @@ -71,10 +71,10 @@ public APIClassifierTaxonomyOut addTaxonomyClassesItem(String taxonomyClassesIte } /** - * Get taxonomyClasses + * The taxonomy classes this classifier classifies to * @return taxonomyClasses **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The taxonomy classes this classifier classifies to") public List getTaxonomyClasses() { return taxonomyClasses; } diff --git a/src/main/java/com/namsor/sdk2/model/APIClassifiersStatusOut.java b/src/main/java/com/namsor/sdk2/model/APIClassifiersStatusOut.java index 70a44f72..cb05136a 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class APIClassifiersStatusOut { public static final String SERIALIZED_NAME_SOFTWARE_VERSION = "softwareVersion"; @SerializedName(SERIALIZED_NAME_SOFTWARE_VERSION) @@ -73,10 +73,10 @@ public APIClassifiersStatusOut addClassifiersItem(APIClassifierOut classifiersIt } /** - * Get classifiers + * The list of classifiers and versions. * @return classifiers **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The list of classifiers and versions.") public List getClassifiers() { return classifiers; } diff --git a/src/main/java/com/namsor/sdk2/model/APICounterV2Out.java b/src/main/java/com/namsor/sdk2/model/APICounterV2Out.java index 3e7fe19f..d6833d5a 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,9 +29,10 @@ import java.util.Map; /** - * APICounterV2Out + * Detailed usage as reported by the deduplicating API counter. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class APICounterV2Out { public static final String SERIALIZED_NAME_API_KEY = "apiKey"; @SerializedName(SERIALIZED_NAME_API_KEY) @@ -85,10 +86,10 @@ public APICounterV2Out apiService(String apiService) { } /** - * Get apiService + * The apiService corresponds to the classifier name. * @return apiService **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The apiService corresponds to the classifier name.") public String getApiService() { return apiService; } @@ -103,10 +104,10 @@ public APICounterV2Out createdDateTime(Long createdDateTime) { } /** - * Get createdDateTime + * The create datetime of the counter. * @return createdDateTime **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The create datetime of the counter.") public Long getCreatedDateTime() { return createdDateTime; } @@ -121,10 +122,10 @@ public APICounterV2Out totalUsage(Long totalUsage) { } /** - * Get totalUsage + * The usage of the counter. * @return totalUsage **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The usage of the counter.") public Long getTotalUsage() { return totalUsage; } @@ -139,10 +140,10 @@ public APICounterV2Out lastFlushedDateTime(Long lastFlushedDateTime) { } /** - * Get lastFlushedDateTime + * The flush datetime of the counter. * @return lastFlushedDateTime **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The flush datetime of the counter.") public Long getLastFlushedDateTime() { return lastFlushedDateTime; } @@ -157,10 +158,10 @@ public APICounterV2Out lastUsedDateTime(Long lastUsedDateTime) { } /** - * Get lastUsedDateTime + * The last usage datetime of the counter. * @return lastUsedDateTime **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The last usage datetime of the counter.") public Long getLastUsedDateTime() { return lastUsedDateTime; } @@ -183,10 +184,10 @@ public APICounterV2Out putServiceFeaturesUsageItem(String key, Long serviceFeatu } /** - * Get serviceFeaturesUsage + * Usage of special features, such as Chinese, Japanese. * @return serviceFeaturesUsage **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Usage of special features, such as Chinese, Japanese.") public Map getServiceFeaturesUsage() { return serviceFeaturesUsage; } diff --git a/src/main/java/com/namsor/sdk2/model/APIKeyOut.java b/src/main/java/com/namsor/sdk2/model/APIKeyOut.java index 88a2e2c2..778b6c12 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,9 +25,10 @@ import java.io.IOException; /** - * APIKeyOut + * The API Key. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class APIKeyOut { public static final String SERIALIZED_NAME_API_KEY = "apiKey"; @SerializedName(SERIALIZED_NAME_API_KEY) @@ -75,10 +76,10 @@ public APIKeyOut apiKey(String apiKey) { } /** - * Get apiKey + * The user API Key. * @return apiKey **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The user API Key.") public String getApiKey() { return apiKey; } @@ -93,10 +94,10 @@ public APIKeyOut userId(String userId) { } /** - * Get userId + * The user identifier. * @return userId **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The user identifier.") public String getUserId() { return userId; } @@ -111,10 +112,10 @@ public APIKeyOut admin(Boolean admin) { } /** - * Get admin + * The API Key has admin role. * @return admin **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The API Key has admin role.") public Boolean getAdmin() { return admin; } @@ -129,10 +130,10 @@ public APIKeyOut vetted(Boolean vetted) { } /** - * Get vetted + * The API Key is vetted (assumed truthful) for machine learning. * @return vetted **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The API Key is vetted (assumed truthful) for machine learning.") public Boolean getVetted() { return vetted; } @@ -147,10 +148,10 @@ public APIKeyOut learnable(Boolean learnable) { } /** - * Get learnable + * The API Key is learnable (without assuming truthfulness) for machine learning. Set learnable=false and anonymized=true for highest privacy (ie. to forget data as it's processed). * @return learnable **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The API Key is learnable (without assuming truthfulness) for machine learning. Set learnable=false and anonymized=true for highest privacy (ie. to forget data as it's processed).") public Boolean getLearnable() { return learnable; } @@ -165,10 +166,10 @@ public APIKeyOut anonymized(Boolean anonymized) { } /** - * Get anonymized + * The API Key is anonymized (using SHA-252 digest for logging). Set learnable=false and anonymized=true for highest privacy (ie. to forget data as it's processed). * @return anonymized **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The API Key is anonymized (using SHA-252 digest for logging). Set learnable=false and anonymized=true for highest privacy (ie. to forget data as it's processed).") public Boolean getAnonymized() { return anonymized; } @@ -183,10 +184,10 @@ public APIKeyOut partner(Boolean partner) { } /** - * Get partner + * The API Key has partner role. * @return partner **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The API Key has partner role.") public Boolean getPartner() { return partner; } @@ -201,10 +202,10 @@ public APIKeyOut striped(Boolean striped) { } /** - * Get striped + * The API Key is associated to a valid Stripe account. * @return striped **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The API Key is associated to a valid Stripe account.") public Boolean getStriped() { return striped; } @@ -219,10 +220,10 @@ public APIKeyOut corporate(Boolean corporate) { } /** - * Get corporate + * The API Key has role corporate (ex SWIFT payments instead of Stripe payments). * @return corporate **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The API Key has role corporate (ex SWIFT payments instead of Stripe payments).") public Boolean getCorporate() { return corporate; } @@ -237,10 +238,10 @@ public APIKeyOut disabled(Boolean disabled) { } /** - * Get disabled + * The API Key is temporarily or permanently disabled. * @return disabled **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The API Key is temporarily or permanently disabled.") public Boolean getDisabled() { return disabled; } diff --git a/src/main/java/com/namsor/sdk2/model/APIPeriodUsageOut.java b/src/main/java/com/namsor/sdk2/model/APIPeriodUsageOut.java index 24d6fe24..1db62e03 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class APIPeriodUsageOut { public static final String SERIALIZED_NAME_SUBSCRIPTION = "subscription"; @SerializedName(SERIALIZED_NAME_SUBSCRIPTION) @@ -97,10 +97,10 @@ public APIPeriodUsageOut overageExclTax(Double overageExclTax) { } /** - * Get overageExclTax + * Overage amount including any tax. * @return overageExclTax **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Overage amount including any tax.") public Double getOverageExclTax() { return overageExclTax; } @@ -115,10 +115,10 @@ public APIPeriodUsageOut overageInclTax(Double overageInclTax) { } /** - * Get overageInclTax + * Overage amount including tax (if applicable). * @return overageInclTax **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Overage amount including tax (if applicable).") public Double getOverageInclTax() { return overageInclTax; } @@ -133,10 +133,10 @@ public APIPeriodUsageOut overageCurrency(String overageCurrency) { } /** - * Get overageCurrency + * Currency of the overage amount. * @return overageCurrency **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Currency of the overage amount.") public String getOverageCurrency() { return overageCurrency; } @@ -151,10 +151,10 @@ public APIPeriodUsageOut overageQuantity(Long overageQuantity) { } /** - * Get overageQuantity + * Quantity above monthly quota of the current subscritpion, in units. * @return overageQuantity **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Quantity above monthly quota of the current subscritpion, in units.") public Long getOverageQuantity() { return overageQuantity; } diff --git a/src/main/java/com/namsor/sdk2/model/APIPlanSubscriptionOut.java b/src/main/java/com/namsor/sdk2/model/APIPlanSubscriptionOut.java index c04090c1..ba7fcf43 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,9 +25,10 @@ import java.io.IOException; /** - * APIPlanSubscriptionOut + * The API Plan governing the subscription. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class APIPlanSubscriptionOut { public static final String SERIALIZED_NAME_API_KEY = "apiKey"; @SerializedName(SERIALIZED_NAME_API_KEY) @@ -111,10 +112,10 @@ public APIPlanSubscriptionOut apiKey(String apiKey) { } /** - * Get apiKey + * User API Key. * @return apiKey **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "User API Key.") public String getApiKey() { return apiKey; } @@ -129,10 +130,10 @@ public APIPlanSubscriptionOut planStarted(Long planStarted) { } /** - * Get planStarted + * Datetime when the user subscribed to the current plan. * @return planStarted **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Datetime when the user subscribed to the current plan.") public Long getPlanStarted() { return planStarted; } @@ -147,10 +148,10 @@ public APIPlanSubscriptionOut priorPlanStarted(Long priorPlanStarted) { } /** - * Get priorPlanStarted + * Datetime when the user subscribed to the prior plan. * @return priorPlanStarted **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Datetime when the user subscribed to the prior plan.") public Long getPriorPlanStarted() { return priorPlanStarted; } @@ -165,10 +166,10 @@ public APIPlanSubscriptionOut planEnded(Long planEnded) { } /** - * Get planEnded + * Datetime when the user ended the plan. * @return planEnded **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Datetime when the user ended the plan.") public Long getPlanEnded() { return planEnded; } @@ -183,10 +184,10 @@ public APIPlanSubscriptionOut taxRate(Double taxRate) { } /** - * Get taxRate + * Applicable tax rate for the plan. * @return taxRate **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Applicable tax rate for the plan.") public Double getTaxRate() { return taxRate; } @@ -201,10 +202,10 @@ public APIPlanSubscriptionOut planName(String planName) { } /** - * Get planName + * Current plan name. * @return planName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Current plan name.") public String getPlanName() { return planName; } @@ -219,10 +220,10 @@ public APIPlanSubscriptionOut planBaseFeesKey(String planBaseFeesKey) { } /** - * Get planBaseFeesKey + * Current plan key (as in Stripe product). * @return planBaseFeesKey **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Current plan key (as in Stripe product).") public String getPlanBaseFeesKey() { return planBaseFeesKey; } @@ -237,10 +238,10 @@ public APIPlanSubscriptionOut planStatus(String planStatus) { } /** - * Get planStatus + * Plan status. * @return planStatus **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Plan status.") public String getPlanStatus() { return planStatus; } @@ -255,10 +256,10 @@ public APIPlanSubscriptionOut planQuota(Long planQuota) { } /** - * Get planQuota + * Current plan quota in quantity of units (NB: some API use several units per name). * @return planQuota **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Current plan quota in quantity of units (NB: some API use several units per name).") public Long getPlanQuota() { return planQuota; } @@ -273,10 +274,10 @@ public APIPlanSubscriptionOut priceUSD(Double priceUSD) { } /** - * Get priceUSD + * Current plan monthly price expressed in USD (includes a free quota). * @return priceUSD **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Current plan monthly price expressed in USD (includes a free quota).") public Double getPriceUSD() { return priceUSD; } @@ -291,10 +292,10 @@ public APIPlanSubscriptionOut priceOverageUSD(Double priceOverageUSD) { } /** - * Get priceOverageUSD + * Current plan price for overages expressed in USD (extra price per unit above the free quota). * @return priceOverageUSD **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Current plan price for overages expressed in USD (extra price per unit above the free quota).") public Double getPriceOverageUSD() { return priceOverageUSD; } @@ -309,10 +310,10 @@ public APIPlanSubscriptionOut price(Double price) { } /** - * Get price + * Current plan price for overages expressed in Currency (extra price per unit above the free quota). * @return price **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Current plan price for overages expressed in Currency (extra price per unit above the free quota).") public Double getPrice() { return price; } @@ -327,10 +328,10 @@ public APIPlanSubscriptionOut priceOverage(Double priceOverage) { } /** - * Get priceOverage + * Current plan price for overages expressed in Currency (extra price per unit above the free quota). * @return priceOverage **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Current plan price for overages expressed in Currency (extra price per unit above the free quota).") public Double getPriceOverage() { return priceOverage; } @@ -345,10 +346,10 @@ public APIPlanSubscriptionOut currency(String currency) { } /** - * Get currency + * Current plan Currency for prices. * @return currency **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Current plan Currency for prices.") public String getCurrency() { return currency; } @@ -363,10 +364,10 @@ public APIPlanSubscriptionOut currencyFactor(Double currencyFactor) { } /** - * Get currencyFactor + * For USD, GBP, EUR - the factor is 1. * @return currencyFactor **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "For USD, GBP, EUR - the factor is 1.") public Double getCurrencyFactor() { return currencyFactor; } @@ -381,10 +382,10 @@ public APIPlanSubscriptionOut stripeCustomerId(String stripeCustomerId) { } /** - * Get stripeCustomerId + * Stripe customer identifier. * @return stripeCustomerId **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Stripe customer identifier.") public String getStripeCustomerId() { return stripeCustomerId; } @@ -399,10 +400,10 @@ public APIPlanSubscriptionOut stripeStatus(String stripeStatus) { } /** - * Get stripeStatus + * Stripe status ex active. * @return stripeStatus **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Stripe status ex active.") public String getStripeStatus() { return stripeStatus; } @@ -417,10 +418,10 @@ public APIPlanSubscriptionOut stripeSubscription(String stripeSubscription) { } /** - * Get stripeSubscription + * Stripe subscription identifier. * @return stripeSubscription **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Stripe subscription identifier.") public String getStripeSubscription() { return stripeSubscription; } @@ -435,10 +436,10 @@ public APIPlanSubscriptionOut userId(String userId) { } /** - * Get userId + * Internal user identifier. * @return userId **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Internal user identifier.") public String getUserId() { return userId; } diff --git a/src/main/java/com/namsor/sdk2/model/APIServiceOut.java b/src/main/java/com/namsor/sdk2/model/APIServiceOut.java index fa8928bb..641e3ae7 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,9 +25,10 @@ import java.io.IOException; /** - * APIServiceOut + * List of API Services */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class APIServiceOut { public static final String SERIALIZED_NAME_SERVICE_NAME = "serviceName"; @SerializedName(SERIALIZED_NAME_SERVICE_NAME) @@ -47,10 +48,10 @@ public APIServiceOut serviceName(String serviceName) { } /** - * Get serviceName + * A service name corresponds to classifier name in apiStatus (ex. personalname_gender or personalfullname_gender) * @return serviceName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "A service name corresponds to classifier name in apiStatus (ex. personalname_gender or personalfullname_gender)") public String getServiceName() { return serviceName; } @@ -65,10 +66,10 @@ public APIServiceOut serviceGroup(String serviceGroup) { } /** - * Get serviceGroup + * Groups together classifiers providing a similar service (ex. gender groups personalname_gender and personalfullname_gender) * @return serviceGroup **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Groups together classifiers providing a similar service (ex. gender groups personalname_gender and personalfullname_gender)") public String getServiceGroup() { return serviceGroup; } @@ -83,10 +84,10 @@ public APIServiceOut costInUnits(Integer costInUnits) { } /** - * Get costInUnits + * Indicates how many units per call this service costs (ex. the number of units per name) * @return costInUnits **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Indicates how many units per call this service costs (ex. the number of units per name)") public Integer getCostInUnits() { return costInUnits; } diff --git a/src/main/java/com/namsor/sdk2/model/APIServicesOut.java b/src/main/java/com/namsor/sdk2/model/APIServicesOut.java index cd2c8dba..9db7cac8 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class APIServicesOut { public static final String SERIALIZED_NAME_API_SERVICES = "apiServices"; @SerializedName(SERIALIZED_NAME_API_SERVICES) @@ -50,10 +50,10 @@ public APIServicesOut addApiServicesItem(APIServiceOut apiServicesItem) { } /** - * Get apiServices + * List of API Services * @return apiServices **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "List of API Services") public List getApiServices() { return apiServices; } diff --git a/src/main/java/com/namsor/sdk2/model/APIUsageAggregatedOut.java b/src/main/java/com/namsor/sdk2/model/APIUsageAggregatedOut.java index 9611de1a..eaeaab9a 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class APIUsageAggregatedOut { public static final String SERIALIZED_NAME_TIME_UNIT = "timeUnit"; @SerializedName(SERIALIZED_NAME_TIME_UNIT) @@ -69,10 +69,10 @@ public APIUsageAggregatedOut timeUnit(String timeUnit) { } /** - * Get timeUnit + * Time unit is DAY, WEEK or MONTH depending on prior usage * @return timeUnit **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Time unit is DAY, WEEK or MONTH depending on prior usage") public String getTimeUnit() { return timeUnit; } @@ -87,10 +87,10 @@ public APIUsageAggregatedOut periodStart(Long periodStart) { } /** - * Get periodStart + * Start datetime of the reporting period * @return periodStart **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Start datetime of the reporting period") public Long getPeriodStart() { return periodStart; } @@ -105,10 +105,10 @@ public APIUsageAggregatedOut periodEnd(Long periodEnd) { } /** - * Get periodEnd + * End datetime of the reporting period * @return periodEnd **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "End datetime of the reporting period") public Long getPeriodEnd() { return periodEnd; } @@ -123,10 +123,10 @@ public APIUsageAggregatedOut totalUsage(Long totalUsage) { } /** - * Get totalUsage + * Total usage in the current period * @return totalUsage **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Total usage in the current period") public Long getTotalUsage() { return totalUsage; } @@ -141,10 +141,10 @@ public APIUsageAggregatedOut historyTruncated(Boolean historyTruncated) { } /** - * Get historyTruncated + * If the history was truncaded due to data limit * @return historyTruncated **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "If the history was truncaded due to data limit") public Boolean getHistoryTruncated() { return historyTruncated; } @@ -167,10 +167,10 @@ public APIUsageAggregatedOut addDataItem(List dataItem) { } /** - * Get data + * Data points : usage per DAY, WEEK or MONTH and per apiService * @return data **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Data points : usage per DAY, WEEK or MONTH and per apiService") public List> getData() { return data; } @@ -193,10 +193,10 @@ public APIUsageAggregatedOut addColHeadersItem(String colHeadersItem) { } /** - * Get colHeaders + * apiServices as column headers * @return colHeaders **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "apiServices as column headers ") public List getColHeaders() { return colHeaders; } @@ -219,10 +219,10 @@ public APIUsageAggregatedOut addRowHeadersItem(String rowHeadersItem) { } /** - * Get rowHeaders + * dates as row headers * @return rowHeaders **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "dates as row headers ") public List getRowHeaders() { return rowHeaders; } diff --git a/src/main/java/com/namsor/sdk2/model/APIUsageHistoryOut.java b/src/main/java/com/namsor/sdk2/model/APIUsageHistoryOut.java new file mode 100644 index 00000000..256c0572 --- /dev/null +++ b/src/main/java/com/namsor/sdk2/model/APIUsageHistoryOut.java @@ -0,0 +1,105 @@ +/* + * 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 + * 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.APICounterV2Out; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * APIUsageHistoryOut + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") +public class APIUsageHistoryOut { + public static final String SERIALIZED_NAME_DETAILED_USAGE = "detailedUsage"; + @SerializedName(SERIALIZED_NAME_DETAILED_USAGE) + private List detailedUsage = new ArrayList(); + + public APIUsageHistoryOut detailedUsage(List detailedUsage) { + this.detailedUsage = detailedUsage; + return this; + } + + public APIUsageHistoryOut addDetailedUsageItem(APICounterV2Out detailedUsageItem) { + if (this.detailedUsage == null) { + this.detailedUsage = new ArrayList(); + } + this.detailedUsage.add(detailedUsageItem); + return this; + } + + /** + * Detailed usage as reported by the deduplicating API counter. + * @return detailedUsage + **/ + @ApiModelProperty(value = "Detailed usage as reported by the deduplicating API counter.") + public List getDetailedUsage() { + return detailedUsage; + } + + public void setDetailedUsage(List detailedUsage) { + this.detailedUsage = detailedUsage; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + APIUsageHistoryOut apIUsageHistoryOut = (APIUsageHistoryOut) o; + return Objects.equals(this.detailedUsage, apIUsageHistoryOut.detailedUsage); + } + + @Override + public int hashCode() { + return Objects.hash(detailedUsage); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class APIUsageHistoryOut {\n"); + sb.append(" detailedUsage: ").append(toIndentedString(detailedUsage)).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/BatchCorridorIn.java b/src/main/java/com/namsor/sdk2/model/BatchCorridorIn.java index 21f005fc..ce49efee 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 09c57b5d..479b32bd 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class BatchCorridorOut { public static final String SERIALIZED_NAME_CORRIDOR_FROM_TO = "corridorFromTo"; @SerializedName(SERIALIZED_NAME_CORRIDOR_FROM_TO) @@ -50,10 +50,10 @@ public BatchCorridorOut addCorridorFromToItem(CorridorOut corridorFromToItem) { } /** - * Get corridorFromTo + * Classified corridors * @return corridorFromTo **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Classified corridors") public List getCorridorFromTo() { return corridorFromTo; } diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameDiasporaedOut.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameDiasporaedOut.java index bcb0dd8d..7ae93e00 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class BatchFirstLastNameDiasporaedOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) @@ -51,10 +51,10 @@ public BatchFirstLastNameDiasporaedOut addPersonalNamesItem(FirstLastNameDiaspor } /** - * Get personalNames + * Classified diaspora names * @return personalNames **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Classified diaspora names") public List getPersonalNames() { return personalNames; } diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGenderIn.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGenderIn.java index 03234e43..ff28c60e 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 076ae737..02f0b6d7 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class BatchFirstLastNameGenderedOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) @@ -51,10 +51,10 @@ public BatchFirstLastNameGenderedOut addPersonalNamesItem(FirstLastNameGenderedO } /** - * Get personalNames + * Classified genderized names * @return personalNames **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Classified genderized names") public List getPersonalNames() { return personalNames; } diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoIn.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoIn.java index d1ff40a9..9015bb1d 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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/BatchFirstLastNameGeoZippedIn.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNameGeoZippedIn.java index 29e22602..1597c970 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 9c6e2569..44946168 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 487f4226..e346b9bb 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class BatchFirstLastNameOriginedOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) @@ -51,10 +51,10 @@ public BatchFirstLastNameOriginedOut addPersonalNamesItem(FirstLastNameOriginedO } /** - * Get personalNames + * Classified origined names * @return personalNames **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Classified origined names") public List getPersonalNames() { return personalNames; } diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneCodedOut.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneCodedOut.java index b3205d0b..d9090927 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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) @@ -51,10 +51,10 @@ public BatchFirstLastNamePhoneCodedOut addPersonalNamesWithPhoneNumbersItem(Firs } /** - * Get personalNamesWithPhoneNumbers + * Classified phone-coded names * @return personalNamesWithPhoneNumbers **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Classified phone-coded names") public List getPersonalNamesWithPhoneNumbers() { return personalNamesWithPhoneNumbers; } diff --git a/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberGeoIn.java b/src/main/java/com/namsor/sdk2/model/BatchFirstLastNamePhoneNumberGeoIn.java index 932db4ea..9d2f1a4c 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 9f8d0a0b..12907bba 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 fc5add13..39317ce7 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class BatchFirstLastNameUSRaceEthnicityOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) @@ -51,10 +51,10 @@ public BatchFirstLastNameUSRaceEthnicityOut addPersonalNamesItem(FirstLastNameUS } /** - * Get personalNames + * Classified US 'race'/ethnicized names * @return personalNames **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Classified US 'race'/ethnicized names") public List getPersonalNames() { return personalNames; } diff --git a/src/main/java/com/namsor/sdk2/model/BatchMatchPersonalFirstLastNameIn.java b/src/main/java/com/namsor/sdk2/model/BatchMatchPersonalFirstLastNameIn.java index 59478631..de08743f 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 97637679..1951ff9a 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 f0cc6aa3..5efd97d1 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 c3f9038b..6f92f9b6 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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) @@ -50,10 +50,10 @@ public BatchNameMatchCandidatesOut addNamesAndMatchCandidatesItem(NameMatchCandi } /** - * Get namesAndMatchCandidates + * Classified matched names * @return namesAndMatchCandidates **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Classified matched names") public List getNamesAndMatchCandidates() { return namesAndMatchCandidates; } diff --git a/src/main/java/com/namsor/sdk2/model/BatchNameMatchedOut.java b/src/main/java/com/namsor/sdk2/model/BatchNameMatchedOut.java index 90998365..7d92464d 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class BatchNameMatchedOut { public static final String SERIALIZED_NAME_MATCHED_NAMES = "matchedNames"; @SerializedName(SERIALIZED_NAME_MATCHED_NAMES) @@ -50,10 +50,10 @@ public BatchNameMatchedOut addMatchedNamesItem(NameMatchedOut matchedNamesItem) } /** - * Get matchedNames + * Classified matched names * @return matchedNames **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Classified matched names") public List getMatchedNames() { return matchedNames; } diff --git a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGenderedOut.java b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGenderedOut.java index 0c8cf3a8..fb238d8a 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class BatchPersonalNameGenderedOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) @@ -50,10 +50,10 @@ public BatchPersonalNameGenderedOut addPersonalNamesItem(PersonalNameGenderedOut } /** - * Get personalNames + * Classified genderized names * @return personalNames **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Classified genderized names") public List getPersonalNames() { return personalNames; } diff --git a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGeoIn.java b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameGeoIn.java index 3b91e859..7efb92c9 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 13216131..c3182735 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class BatchPersonalNameGeoOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) @@ -50,10 +50,10 @@ public BatchPersonalNameGeoOut addPersonalNamesItem(PersonalNameGeoOut personalN } /** - * Get personalNames + * Classified geo names * @return personalNames **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Classified geo names") public List getPersonalNames() { return personalNames; } diff --git a/src/main/java/com/namsor/sdk2/model/BatchPersonalNameIn.java b/src/main/java/com/namsor/sdk2/model/BatchPersonalNameIn.java index ddc34355..bab26200 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 58f63eba..33eafc07 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class BatchPersonalNameParsedOut { public static final String SERIALIZED_NAME_PERSONAL_NAMES = "personalNames"; @SerializedName(SERIALIZED_NAME_PERSONAL_NAMES) @@ -50,10 +50,10 @@ public BatchPersonalNameParsedOut addPersonalNamesItem(PersonalNameParsedOut per } /** - * Get personalNames + * Classified parsed names * @return personalNames **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Classified parsed names") public List getPersonalNames() { return personalNames; } diff --git a/src/main/java/com/namsor/sdk2/model/BatchProperNounCategorizedOut.java b/src/main/java/com/namsor/sdk2/model/BatchProperNounCategorizedOut.java index f70d22bd..06f66d5d 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class BatchProperNounCategorizedOut { public static final String SERIALIZED_NAME_PROPER_NOUNS = "properNouns"; @SerializedName(SERIALIZED_NAME_PROPER_NOUNS) @@ -51,10 +51,10 @@ public BatchProperNounCategorizedOut addProperNounsItem(ProperNounCategorizedOut } /** - * Get properNouns + * Classified typed proper names * @return properNouns **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Classified typed proper names") public List getProperNouns() { return properNouns; } diff --git a/src/main/java/com/namsor/sdk2/model/CorridorIn.java b/src/main/java/com/namsor/sdk2/model/CorridorIn.java index af1ef1b9..dd4a714b 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 0f608886..f280008b 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class CorridorOut { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -53,10 +53,6 @@ public class CorridorOut { @SerializedName(SERIALIZED_NAME_SCRIPT) private String script; - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public CorridorOut id(String id) { this.id = id; return this; @@ -147,24 +143,6 @@ public void setScript(String script) { this.script = script; } - public CorridorOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - @Override public boolean equals(java.lang.Object o) { @@ -179,13 +157,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.firstLastNameGenderedOut, corridorOut.firstLastNameGenderedOut) && Objects.equals(this.firstLastNameOriginedOut, corridorOut.firstLastNameOriginedOut) && Objects.equals(this.firstLastNameDiasporaedOut, corridorOut.firstLastNameDiasporaedOut) && - Objects.equals(this.script, corridorOut.script) && - Objects.equals(this.category, corridorOut.category); + Objects.equals(this.script, corridorOut.script); } @Override public int hashCode() { - return Objects.hash(id, firstLastNameGenderedOut, firstLastNameOriginedOut, firstLastNameDiasporaedOut, script, category); + return Objects.hash(id, firstLastNameGenderedOut, firstLastNameOriginedOut, firstLastNameDiasporaedOut, script); } @@ -198,7 +175,6 @@ public String toString() { sb.append(" firstLastNameOriginedOut: ").append(toIndentedString(firstLastNameOriginedOut)).append("\n"); sb.append(" firstLastNameDiasporaedOut: ").append(toIndentedString(firstLastNameDiasporaedOut)).append("\n"); sb.append(" script: ").append(toIndentedString(script)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/FeedbackLoopOut.java b/src/main/java/com/namsor/sdk2/model/FeedbackLoopOut.java index 6ed68dcc..49b9c3bd 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class FeedbackLoopOut { public static final String SERIALIZED_NAME_FEEDBACK_CREDITS = "feedbackCredits"; @SerializedName(SERIALIZED_NAME_FEEDBACK_CREDITS) @@ -39,10 +39,10 @@ public FeedbackLoopOut feedbackCredits(Long feedbackCredits) { } /** - * Get feedbackCredits + * Number of units recredited as per feedback loop successful classification * @return feedbackCredits **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Number of units recredited as per feedback loop successful classification") public Long getFeedbackCredits() { return feedbackCredits; } diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameDiasporaedOut.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameDiasporaedOut.java index ccacf78c..2345ba12 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class FirstLastNameDiasporaedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -72,10 +72,6 @@ public class FirstLastNameDiasporaedOut { @SerializedName(SERIALIZED_NAME_ETHNICITIES_TOP) private List ethnicitiesTop = new ArrayList(); - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public FirstLastNameDiasporaedOut script(String script) { this.script = script; return this; @@ -118,10 +114,10 @@ public FirstLastNameDiasporaedOut firstName(String firstName) { } /** - * Get firstName + * The first name (also known as given name) * @return firstName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The first name (also known as given name)") public String getFirstName() { return firstName; } @@ -136,10 +132,10 @@ public FirstLastNameDiasporaedOut lastName(String lastName) { } /** - * Get lastName + * The last name (also known as family name, or surname) * @return lastName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The last name (also known as family name, or surname)") public String getLastName() { return lastName; } @@ -154,10 +150,12 @@ public FirstLastNameDiasporaedOut score(Double score) { } /** - * Compatibility to NamSor_v1 Origin score value + * Compatibility to NamSor_v1 Diaspora 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") + @ApiModelProperty(value = "Compatibility to NamSor_v1 Diaspora score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. ") public Double getScore() { return score; } @@ -172,10 +170,10 @@ public FirstLastNameDiasporaedOut ethnicityAlt(String ethnicityAlt) { } /** - * Get ethnicityAlt + * The second best alternative ethnicity * @return ethnicityAlt **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "Japanese", value = "The second best alternative ethnicity") public String getEthnicityAlt() { return ethnicityAlt; } @@ -190,10 +188,10 @@ public FirstLastNameDiasporaedOut ethnicity(String ethnicity) { } /** - * Get ethnicity + * The most likely ethnicity * @return ethnicity **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "Chinese", value = "The most likely ethnicity") public String getEthnicity() { return ethnicity; } @@ -208,10 +206,10 @@ public FirstLastNameDiasporaedOut lifted(Boolean lifted) { } /** - * Get lifted + * 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. * @return lifted **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "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.") public Boolean getLifted() { return lifted; } @@ -226,10 +224,10 @@ public FirstLastNameDiasporaedOut countryIso2(String countryIso2) { } /** - * Get countryIso2 + * From input data, the countryIso2 of geographic context (US,CA etc.) * @return countryIso2 **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "From input data, the countryIso2 of geographic context (US,CA etc.)") public String getCountryIso2() { return countryIso2; } @@ -252,10 +250,10 @@ public FirstLastNameDiasporaedOut addEthnicitiesTopItem(String ethnicitiesTopIte } /** - * List ethnicities (top 10) + * List most likely ethnicities (top 10) * @return ethnicitiesTop **/ - @ApiModelProperty(value = "List ethnicities (top 10)") + @ApiModelProperty(value = "List most likely ethnicities (top 10)") public List getEthnicitiesTop() { return ethnicitiesTop; } @@ -264,24 +262,6 @@ public void setEthnicitiesTop(List ethnicitiesTop) { this.ethnicitiesTop = ethnicitiesTop; } - public FirstLastNameDiasporaedOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - @Override public boolean equals(java.lang.Object o) { @@ -301,13 +281,12 @@ 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.category, firstLastNameDiasporaedOut.category); + Objects.equals(this.ethnicitiesTop, firstLastNameDiasporaedOut.ethnicitiesTop); } @Override public int hashCode() { - return Objects.hash(script, id, firstName, lastName, score, ethnicityAlt, ethnicity, lifted, countryIso2, ethnicitiesTop, category); + return Objects.hash(script, id, firstName, lastName, score, ethnicityAlt, ethnicity, lifted, countryIso2, ethnicitiesTop); } @@ -325,7 +304,6 @@ 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(" category: ").append(toIndentedString(category)).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 bebaf90b..b2848c58 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class FirstLastNameGenderIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -105,10 +105,10 @@ public FirstLastNameGenderIn gender(String gender) { } /** - * Get gender + * The known gender of the name * @return gender **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The known gender of the name") public String getGender() { return gender; } diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameGenderedOut.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameGenderedOut.java index 02f4ca9e..c365a6e1 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class FirstLastNameGenderedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -111,10 +111,6 @@ public LikelyGenderEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PROBABILITY_CALIBRATED) private Double probabilityCalibrated; - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public FirstLastNameGenderedOut script(String script) { this.script = script; return this; @@ -157,10 +153,10 @@ public FirstLastNameGenderedOut firstName(String firstName) { } /** - * Get firstName + * The first name (also known as given name) * @return firstName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The first name (also known as given name)") public String getFirstName() { return firstName; } @@ -175,10 +171,10 @@ public FirstLastNameGenderedOut lastName(String lastName) { } /** - * Get lastName + * The last name (also known as family name, or surname) * @return lastName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The last name (also known as family name, or surname)") public String getLastName() { return lastName; } @@ -229,10 +225,12 @@ public FirstLastNameGenderedOut score(Double score) { } /** - * Get score + * Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. + * minimum: 0 + * maximum: 100 * @return score **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. ") public Double getScore() { return score; } @@ -247,10 +245,10 @@ public FirstLastNameGenderedOut probabilityCalibrated(Double probabilityCalibrat } /** - * Get probabilityCalibrated + * The calibrated probability for inferred gender to have been guessed correctly. * @return probabilityCalibrated **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The calibrated probability for inferred gender to have been guessed correctly.") public Double getProbabilityCalibrated() { return probabilityCalibrated; } @@ -259,24 +257,6 @@ public void setProbabilityCalibrated(Double probabilityCalibrated) { this.probabilityCalibrated = probabilityCalibrated; } - public FirstLastNameGenderedOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - @Override public boolean equals(java.lang.Object o) { @@ -294,13 +274,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.likelyGender, firstLastNameGenderedOut.likelyGender) && Objects.equals(this.genderScale, firstLastNameGenderedOut.genderScale) && Objects.equals(this.score, firstLastNameGenderedOut.score) && - Objects.equals(this.probabilityCalibrated, firstLastNameGenderedOut.probabilityCalibrated) && - Objects.equals(this.category, firstLastNameGenderedOut.category); + Objects.equals(this.probabilityCalibrated, firstLastNameGenderedOut.probabilityCalibrated); } @Override public int hashCode() { - return Objects.hash(script, id, firstName, lastName, likelyGender, genderScale, score, probabilityCalibrated, category); + return Objects.hash(script, id, firstName, lastName, likelyGender, genderScale, score, probabilityCalibrated); } @@ -316,7 +295,6 @@ public String toString() { sb.append(" genderScale: ").append(toIndentedString(genderScale)).append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); sb.append(" probabilityCalibrated: ").append(toIndentedString(probabilityCalibrated)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoIn.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoIn.java index 449a150b..4680dbc7 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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/FirstLastNameGeoZippedIn.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameGeoZippedIn.java index 9d3b097e..5eb9493e 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 d231b761..ba855179 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 bc395428..28413da6 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class FirstLastNameOriginedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -84,10 +84,6 @@ public class FirstLastNameOriginedOut { @SerializedName(SERIALIZED_NAME_PROBABILITY_ALT_CALIBRATED) private Double probabilityAltCalibrated; - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public FirstLastNameOriginedOut script(String script) { this.script = script; return this; @@ -130,10 +126,10 @@ public FirstLastNameOriginedOut firstName(String firstName) { } /** - * Get firstName + * The first name (also known as given name) * @return firstName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The first name (also known as given name)") public String getFirstName() { return firstName; } @@ -148,10 +144,10 @@ public FirstLastNameOriginedOut lastName(String lastName) { } /** - * Get lastName + * The last name (also known as family name, or surname) * @return lastName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The last name (also known as family name, or surname)") public String getLastName() { return lastName; } @@ -228,10 +224,12 @@ public FirstLastNameOriginedOut score(Double score) { } /** - * Compatibility to NamSor_v1 Origin score value + * 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") + @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; } @@ -264,10 +262,10 @@ public FirstLastNameOriginedOut topRegionOrigin(String topRegionOrigin) { } /** - * Most likely region of Origin (based on countryOrigin ISO2 code) + * Most likely top region of Origin (based on countryOrigin ISO2 code) * @return topRegionOrigin **/ - @ApiModelProperty(value = "Most likely region of Origin (based on countryOrigin ISO2 code)") + @ApiModelProperty(value = "Most likely top region of Origin (based on countryOrigin ISO2 code)") public String getTopRegionOrigin() { return topRegionOrigin; } @@ -282,10 +280,10 @@ public FirstLastNameOriginedOut subRegionOrigin(String subRegionOrigin) { } /** - * Most likely region of Origin (based on countryOrigin ISO2 code) + * Most likely sub region of Origin (based on countryOrigin ISO2 code) * @return subRegionOrigin **/ - @ApiModelProperty(value = "Most likely region of Origin (based on countryOrigin ISO2 code)") + @ApiModelProperty(value = "Most likely sub region of Origin (based on countryOrigin ISO2 code)") public String getSubRegionOrigin() { return subRegionOrigin; } @@ -300,10 +298,10 @@ public FirstLastNameOriginedOut probabilityCalibrated(Double probabilityCalibrat } /** - * Get probabilityCalibrated + * The calibrated probability for countryOrigin to have been guessed correctly. * @return probabilityCalibrated **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The calibrated probability for countryOrigin to have been guessed correctly.") public Double getProbabilityCalibrated() { return probabilityCalibrated; } @@ -318,10 +316,10 @@ public FirstLastNameOriginedOut probabilityAltCalibrated(Double probabilityAltCa } /** - * Get probabilityAltCalibrated + * The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. * @return probabilityAltCalibrated **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly.") public Double getProbabilityAltCalibrated() { return probabilityAltCalibrated; } @@ -330,24 +328,6 @@ public void setProbabilityAltCalibrated(Double probabilityAltCalibrated) { this.probabilityAltCalibrated = probabilityAltCalibrated; } - public FirstLastNameOriginedOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - @Override public boolean equals(java.lang.Object o) { @@ -370,13 +350,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.topRegionOrigin, firstLastNameOriginedOut.topRegionOrigin) && Objects.equals(this.subRegionOrigin, firstLastNameOriginedOut.subRegionOrigin) && Objects.equals(this.probabilityCalibrated, firstLastNameOriginedOut.probabilityCalibrated) && - Objects.equals(this.probabilityAltCalibrated, firstLastNameOriginedOut.probabilityAltCalibrated) && - Objects.equals(this.category, firstLastNameOriginedOut.category); + Objects.equals(this.probabilityAltCalibrated, firstLastNameOriginedOut.probabilityAltCalibrated); } @Override public int hashCode() { - return Objects.hash(script, id, firstName, lastName, countryOrigin, countryOriginAlt, countriesOriginTop, score, regionOrigin, topRegionOrigin, subRegionOrigin, probabilityCalibrated, probabilityAltCalibrated, category); + return Objects.hash(script, id, firstName, lastName, countryOrigin, countryOriginAlt, countriesOriginTop, score, regionOrigin, topRegionOrigin, subRegionOrigin, probabilityCalibrated, probabilityAltCalibrated); } @@ -397,7 +376,6 @@ public String toString() { sb.append(" subRegionOrigin: ").append(toIndentedString(subRegionOrigin)).append("\n"); sb.append(" probabilityCalibrated: ").append(toIndentedString(probabilityCalibrated)).append("\n"); sb.append(" probabilityAltCalibrated: ").append(toIndentedString(probabilityAltCalibrated)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameOut.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameOut.java index 5e3e505b..fa0fe264 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,9 +25,10 @@ import java.io.IOException; /** - * FirstLastNameOut + * First / last name structure corresponding to the most likely parsing. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class FirstLastNameOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -45,10 +46,6 @@ public class FirstLastNameOut { @SerializedName(SERIALIZED_NAME_LAST_NAME) private String lastName; - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public FirstLastNameOut script(String script) { this.script = script; return this; @@ -91,10 +88,10 @@ public FirstLastNameOut firstName(String firstName) { } /** - * Get firstName + * The first name (also known as given name) * @return firstName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The first name (also known as given name)") public String getFirstName() { return firstName; } @@ -109,10 +106,10 @@ public FirstLastNameOut lastName(String lastName) { } /** - * Get lastName + * The last name (also known as family name, or surname) * @return lastName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The last name (also known as family name, or surname)") public String getLastName() { return lastName; } @@ -121,24 +118,6 @@ public void setLastName(String lastName) { this.lastName = lastName; } - public FirstLastNameOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - @Override public boolean equals(java.lang.Object o) { @@ -152,13 +131,12 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.script, firstLastNameOut.script) && Objects.equals(this.id, firstLastNameOut.id) && Objects.equals(this.firstName, firstLastNameOut.firstName) && - Objects.equals(this.lastName, firstLastNameOut.lastName) && - Objects.equals(this.category, firstLastNameOut.category); + Objects.equals(this.lastName, firstLastNameOut.lastName); } @Override public int hashCode() { - return Objects.hash(script, id, firstName, lastName, category); + return Objects.hash(script, id, firstName, lastName); } @@ -170,7 +148,6 @@ public String toString() { 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(" category: ").append(toIndentedString(category)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneCodedOut.java b/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneCodedOut.java index 1fe89031..3c3be8ad 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class FirstLastNamePhoneCodedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -90,10 +90,6 @@ public class FirstLastNamePhoneCodedOut { @SerializedName(SERIALIZED_NAME_SCORE) private Double score; - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public static final String SERIALIZED_NAME_COUNTRY_ISO2 = "countryIso2"; @SerializedName(SERIALIZED_NAME_COUNTRY_ISO2) private String countryIso2; @@ -140,10 +136,10 @@ public FirstLastNamePhoneCodedOut firstName(String firstName) { } /** - * Get firstName + * The first name (also known as given name) * @return firstName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The first name (also known as given name)") public String getFirstName() { return firstName; } @@ -158,10 +154,10 @@ public FirstLastNamePhoneCodedOut lastName(String lastName) { } /** - * Get lastName + * The last name (also known as family name, or surname) * @return lastName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The last name (also known as family name, or surname)") public String getLastName() { return lastName; } @@ -176,10 +172,10 @@ public FirstLastNamePhoneCodedOut internationalPhoneNumberVerified(String intern } /** - * Get internationalPhoneNumberVerified + * The normalized phone number, verified using libphonenumber. * @return internationalPhoneNumberVerified **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The normalized phone number, verified using libphonenumber.") public String getInternationalPhoneNumberVerified() { return internationalPhoneNumberVerified; } @@ -194,10 +190,10 @@ public FirstLastNamePhoneCodedOut phoneCountryIso2Verified(String phoneCountryIs } /** - * Get phoneCountryIso2Verified + * The phone ISO2 country code, verified using libphonenumber. * @return phoneCountryIso2Verified **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The phone ISO2 country code, verified using libphonenumber.") public String getPhoneCountryIso2Verified() { return phoneCountryIso2Verified; } @@ -212,10 +208,10 @@ public FirstLastNamePhoneCodedOut phoneCountryCode(Integer phoneCountryCode) { } /** - * Get phoneCountryCode + * The phone country code of the phone number, verified using libphonenumber. * @return phoneCountryCode **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The phone country code of the phone number, verified using libphonenumber.") public Integer getPhoneCountryCode() { return phoneCountryCode; } @@ -230,10 +226,10 @@ public FirstLastNamePhoneCodedOut phoneCountryCodeAlt(Integer phoneCountryCodeAl } /** - * Get phoneCountryCodeAlt + * The best alternative phone country code of the phone number. * @return phoneCountryCodeAlt **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The best alternative phone country code of the phone number.") public Integer getPhoneCountryCodeAlt() { return phoneCountryCodeAlt; } @@ -248,10 +244,10 @@ public FirstLastNamePhoneCodedOut phoneCountryIso2(String phoneCountryIso2) { } /** - * Get phoneCountryIso2 + * The likely country of the phone number. * @return phoneCountryIso2 **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The likely country of the phone number.") public String getPhoneCountryIso2() { return phoneCountryIso2; } @@ -266,10 +262,10 @@ public FirstLastNamePhoneCodedOut phoneCountryIso2Alt(String phoneCountryIso2Alt } /** - * Get phoneCountryIso2Alt + * The best alternative country of the phone number. * @return phoneCountryIso2Alt **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The best alternative country of the phone number.") public String getPhoneCountryIso2Alt() { return phoneCountryIso2Alt; } @@ -284,10 +280,10 @@ public FirstLastNamePhoneCodedOut originCountryIso2(String originCountryIso2) { } /** - * Get originCountryIso2 + * The likely country of origin of the name. * @return originCountryIso2 **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The likely country of origin of the name.") public String getOriginCountryIso2() { return originCountryIso2; } @@ -302,10 +298,10 @@ public FirstLastNamePhoneCodedOut originCountryIso2Alt(String originCountryIso2A } /** - * Get originCountryIso2Alt + * The best alternative country of origin of the name. * @return originCountryIso2Alt **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The best alternative country of origin of the name.") public String getOriginCountryIso2Alt() { return originCountryIso2Alt; } @@ -320,10 +316,10 @@ public FirstLastNamePhoneCodedOut phoneNumber(String phoneNumber) { } /** - * Get phoneNumber + * The input phone number. * @return phoneNumber **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The input phone number.") public String getPhoneNumber() { return phoneNumber; } @@ -338,10 +334,10 @@ public FirstLastNamePhoneCodedOut verified(Boolean verified) { } /** - * Get verified + * Indicates if the phone number could be positively verified using libphonenumber. * @return verified **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Indicates if the phone number could be positively verified using libphonenumber.") public Boolean getVerified() { return verified; } @@ -356,10 +352,12 @@ public FirstLastNamePhoneCodedOut score(Double score) { } /** - * Get score + * Higher score is better, but score is not normalized. Use calibratedProbability if available. + * minimum: 0 + * maximum: 100 * @return score **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Higher score is better, but score is not normalized. Use calibratedProbability if available. ") public Double getScore() { return score; } @@ -368,24 +366,6 @@ public void setScore(Double score) { this.score = score; } - public FirstLastNamePhoneCodedOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - public FirstLastNamePhoneCodedOut countryIso2(String countryIso2) { this.countryIso2 = countryIso2; return this; @@ -429,13 +409,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.phoneNumber, firstLastNamePhoneCodedOut.phoneNumber) && Objects.equals(this.verified, firstLastNamePhoneCodedOut.verified) && Objects.equals(this.score, firstLastNamePhoneCodedOut.score) && - Objects.equals(this.category, firstLastNamePhoneCodedOut.category) && Objects.equals(this.countryIso2, firstLastNamePhoneCodedOut.countryIso2); } @Override public int hashCode() { - return Objects.hash(script, id, firstName, lastName, internationalPhoneNumberVerified, phoneCountryIso2Verified, phoneCountryCode, phoneCountryCodeAlt, phoneCountryIso2, phoneCountryIso2Alt, originCountryIso2, originCountryIso2Alt, phoneNumber, verified, score, category, countryIso2); + return Objects.hash(script, id, firstName, lastName, internationalPhoneNumberVerified, phoneCountryIso2Verified, phoneCountryCode, phoneCountryCodeAlt, phoneCountryIso2, phoneCountryIso2Alt, originCountryIso2, originCountryIso2Alt, phoneNumber, verified, score, countryIso2); } @@ -458,7 +437,6 @@ public String toString() { sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" verified: ").append(toIndentedString(verified)).append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append(" countryIso2: ").append(toIndentedString(countryIso2)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberGeoIn.java b/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberGeoIn.java index c1e5dc24..e0095b16 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ /** * FirstLastNamePhoneNumberGeoIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class FirstLastNamePhoneNumberGeoIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberIn.java b/src/main/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberIn.java index bac75fde..22ab7666 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ /** * FirstLastNamePhoneNumberIn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class FirstLastNamePhoneNumberIn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/namsor/sdk2/model/FirstLastNameUSRaceEthnicityOut.java b/src/main/java/com/namsor/sdk2/model/FirstLastNameUSRaceEthnicityOut.java index b63419ee..3583707f 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class FirstLastNameUSRaceEthnicityOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -182,10 +182,6 @@ public RaceEthnicityEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PROBABILITY_ALT_CALIBRATED) private Double probabilityAltCalibrated; - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public FirstLastNameUSRaceEthnicityOut script(String script) { this.script = script; return this; @@ -228,10 +224,10 @@ public FirstLastNameUSRaceEthnicityOut firstName(String firstName) { } /** - * Get firstName + * The first name (also known as given name) * @return firstName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The first name (also known as given name)") public String getFirstName() { return firstName; } @@ -246,10 +242,10 @@ public FirstLastNameUSRaceEthnicityOut lastName(String lastName) { } /** - * Get lastName + * The last name (also known as family name, or surname) * @return lastName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The last name (also known as family name, or surname)") public String getLastName() { return lastName; } @@ -300,10 +296,12 @@ public FirstLastNameUSRaceEthnicityOut score(Double score) { } /** - * 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") + @ApiModelProperty(value = "Higher score is better, but score is not normalized. Use calibratedProbability if available. ") public Double getScore() { return score; } @@ -344,10 +342,10 @@ public FirstLastNameUSRaceEthnicityOut probabilityCalibrated(Double probabilityC } /** - * Get probabilityCalibrated + * The calibrated probability for raceEthnicity to have been guessed correctly. * @return probabilityCalibrated **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The calibrated probability for raceEthnicity to have been guessed correctly.") public Double getProbabilityCalibrated() { return probabilityCalibrated; } @@ -362,10 +360,10 @@ public FirstLastNameUSRaceEthnicityOut probabilityAltCalibrated(Double probabili } /** - * Get probabilityAltCalibrated + * The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly. * @return probabilityAltCalibrated **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly.") public Double getProbabilityAltCalibrated() { return probabilityAltCalibrated; } @@ -374,24 +372,6 @@ public void setProbabilityAltCalibrated(Double probabilityAltCalibrated) { this.probabilityAltCalibrated = probabilityAltCalibrated; } - public FirstLastNameUSRaceEthnicityOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - @Override public boolean equals(java.lang.Object o) { @@ -411,13 +391,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.score, firstLastNameUSRaceEthnicityOut.score) && Objects.equals(this.raceEthnicitiesTop, firstLastNameUSRaceEthnicityOut.raceEthnicitiesTop) && Objects.equals(this.probabilityCalibrated, firstLastNameUSRaceEthnicityOut.probabilityCalibrated) && - Objects.equals(this.probabilityAltCalibrated, firstLastNameUSRaceEthnicityOut.probabilityAltCalibrated) && - Objects.equals(this.category, firstLastNameUSRaceEthnicityOut.category); + Objects.equals(this.probabilityAltCalibrated, firstLastNameUSRaceEthnicityOut.probabilityAltCalibrated); } @Override public int hashCode() { - return Objects.hash(script, id, firstName, lastName, raceEthnicityAlt, raceEthnicity, score, raceEthnicitiesTop, probabilityCalibrated, probabilityAltCalibrated, category); + return Objects.hash(script, id, firstName, lastName, raceEthnicityAlt, raceEthnicity, score, raceEthnicitiesTop, probabilityCalibrated, probabilityAltCalibrated); } @@ -435,7 +414,6 @@ public String toString() { sb.append(" raceEthnicitiesTop: ").append(toIndentedString(raceEthnicitiesTop)).append("\n"); sb.append(" probabilityCalibrated: ").append(toIndentedString(probabilityCalibrated)).append("\n"); sb.append(" probabilityAltCalibrated: ").append(toIndentedString(probabilityAltCalibrated)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/MatchPersonalFirstLastNameIn.java b/src/main/java/com/namsor/sdk2/model/MatchPersonalFirstLastNameIn.java index 5e2e30ba..d85b21ad 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 80bbd698..d28dc376 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 03865e16..7192f90f 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 7094bee3..a263a17f 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,9 +25,10 @@ import java.io.IOException; /** - * NameMatchCandidateOut + * The ordered list of name matching candidates */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class NameMatchCandidateOut { public static final String SERIALIZED_NAME_CANDIDATE_NAME = "candidateName"; @SerializedName(SERIALIZED_NAME_CANDIDATE_NAME) @@ -51,10 +52,10 @@ public NameMatchCandidateOut candidateName(String candidateName) { } /** - * Get candidateName + * The name matching candidate name * @return candidateName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The name matching candidate name") public String getCandidateName() { return candidateName; } @@ -69,10 +70,10 @@ public NameMatchCandidateOut probability(Double probability) { } /** - * Get probability + * The name matching estimated probability. * @return probability **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The name matching estimated probability.") public Double getProbability() { return probability; } @@ -87,10 +88,10 @@ public NameMatchCandidateOut predScoreGivenName(Double predScoreGivenName) { } /** - * Get predScoreGivenName + * The given name prediction score. * @return predScoreGivenName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The given name prediction score.") public Double getPredScoreGivenName() { return predScoreGivenName; } @@ -105,10 +106,10 @@ public NameMatchCandidateOut predScoreFamilyName(Double predScoreFamilyName) { } /** - * Get predScoreFamilyName + * The family name prediction score. * @return predScoreFamilyName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The family name prediction score.") public Double getPredScoreFamilyName() { return predScoreFamilyName; } diff --git a/src/main/java/com/namsor/sdk2/model/NameMatchCandidatesOut.java b/src/main/java/com/namsor/sdk2/model/NameMatchCandidatesOut.java index 04195db8..3327f5b9 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,9 +28,10 @@ import java.util.List; /** - * NameMatchCandidatesOut + * Classified matched names */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class NameMatchCandidatesOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -56,10 +57,6 @@ public class NameMatchCandidatesOut { @SerializedName(SERIALIZED_NAME_MATCH_CANDIDATES) private List matchCandidates = new ArrayList(); - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public NameMatchCandidatesOut script(String script) { this.script = script; return this; @@ -102,10 +99,10 @@ public NameMatchCandidatesOut firstName(String firstName) { } /** - * Get firstName + * The first name (also known as given name) * @return firstName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The first name (also known as given name)") public String getFirstName() { return firstName; } @@ -120,10 +117,10 @@ public NameMatchCandidatesOut lastName(String lastName) { } /** - * Get lastName + * The last name (also known as family name, or surname) * @return lastName **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The last name (also known as family name, or surname)") public String getLastName() { return lastName; } @@ -138,10 +135,10 @@ public NameMatchCandidatesOut orderOption(String orderOption) { } /** - * Get orderOption + * The option for ordering * @return orderOption **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The option for ordering") public String getOrderOption() { return orderOption; } @@ -164,10 +161,10 @@ public NameMatchCandidatesOut addMatchCandidatesItem(NameMatchCandidateOut match } /** - * Get matchCandidates + * The ordered list of name matching candidates * @return matchCandidates **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The ordered list of name matching candidates") public List getMatchCandidates() { return matchCandidates; } @@ -176,24 +173,6 @@ public void setMatchCandidates(List matchCandidates) { this.matchCandidates = matchCandidates; } - public NameMatchCandidatesOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - @Override public boolean equals(java.lang.Object o) { @@ -209,13 +188,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.firstName, nameMatchCandidatesOut.firstName) && Objects.equals(this.lastName, nameMatchCandidatesOut.lastName) && Objects.equals(this.orderOption, nameMatchCandidatesOut.orderOption) && - Objects.equals(this.matchCandidates, nameMatchCandidatesOut.matchCandidates) && - Objects.equals(this.category, nameMatchCandidatesOut.category); + Objects.equals(this.matchCandidates, nameMatchCandidatesOut.matchCandidates); } @Override public int hashCode() { - return Objects.hash(script, id, firstName, lastName, orderOption, matchCandidates, category); + return Objects.hash(script, id, firstName, lastName, orderOption, matchCandidates); } @@ -229,7 +207,6 @@ public String toString() { sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" orderOption: ").append(toIndentedString(orderOption)).append("\n"); sb.append(" matchCandidates: ").append(toIndentedString(matchCandidates)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/NameMatchedOut.java b/src/main/java/com/namsor/sdk2/model/NameMatchedOut.java index c96d6fbd..9c81177c 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,9 +25,10 @@ import java.io.IOException; /** - * NameMatchedOut + * Classified matched names */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class NameMatchedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -45,10 +46,6 @@ public class NameMatchedOut { @SerializedName(SERIALIZED_NAME_SCORE) private Double score; - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public NameMatchedOut script(String script) { this.script = script; return this; @@ -91,10 +88,10 @@ public NameMatchedOut matchStatus(String matchStatus) { } /** - * Get matchStatus + * The name matching status. * @return matchStatus **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The name matching status.") public String getMatchStatus() { return matchStatus; } @@ -121,24 +118,6 @@ public void setScore(Double score) { this.score = score; } - public NameMatchedOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - @Override public boolean equals(java.lang.Object o) { @@ -152,13 +131,12 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.script, nameMatchedOut.script) && Objects.equals(this.id, nameMatchedOut.id) && Objects.equals(this.matchStatus, nameMatchedOut.matchStatus) && - Objects.equals(this.score, nameMatchedOut.score) && - Objects.equals(this.category, nameMatchedOut.category); + Objects.equals(this.score, nameMatchedOut.score); } @Override public int hashCode() { - return Objects.hash(script, id, matchStatus, score, category); + return Objects.hash(script, id, matchStatus, score); } @@ -170,7 +148,6 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" matchStatus: ").append(toIndentedString(matchStatus)).append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/PersonalNameGenderedOut.java b/src/main/java/com/namsor/sdk2/model/PersonalNameGenderedOut.java index ef68db47..9e1408e1 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,9 +25,10 @@ import java.io.IOException; /** - * PersonalNameGenderedOut + * Classified genderized names */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class PersonalNameGenderedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -106,10 +107,6 @@ public LikelyGenderEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PROBABILITY_CALIBRATED) private Double probabilityCalibrated; - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public PersonalNameGenderedOut script(String script) { this.script = script; return this; @@ -152,10 +149,10 @@ public PersonalNameGenderedOut name(String name) { } /** - * Get name + * The input name * @return name **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The input name") public String getName() { return name; } @@ -206,10 +203,12 @@ public PersonalNameGenderedOut score(Double score) { } /** - * Get score + * Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. + * minimum: 0 + * maximum: 100 * @return score **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. ") public Double getScore() { return score; } @@ -224,10 +223,10 @@ public PersonalNameGenderedOut probabilityCalibrated(Double probabilityCalibrate } /** - * Get probabilityCalibrated + * The calibrated probability for inferred gender to have been guessed correctly. * @return probabilityCalibrated **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The calibrated probability for inferred gender to have been guessed correctly.") public Double getProbabilityCalibrated() { return probabilityCalibrated; } @@ -236,24 +235,6 @@ public void setProbabilityCalibrated(Double probabilityCalibrated) { this.probabilityCalibrated = probabilityCalibrated; } - public PersonalNameGenderedOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - @Override public boolean equals(java.lang.Object o) { @@ -270,13 +251,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.likelyGender, personalNameGenderedOut.likelyGender) && Objects.equals(this.genderScale, personalNameGenderedOut.genderScale) && Objects.equals(this.score, personalNameGenderedOut.score) && - Objects.equals(this.probabilityCalibrated, personalNameGenderedOut.probabilityCalibrated) && - Objects.equals(this.category, personalNameGenderedOut.category); + Objects.equals(this.probabilityCalibrated, personalNameGenderedOut.probabilityCalibrated); } @Override public int hashCode() { - return Objects.hash(script, id, name, likelyGender, genderScale, score, probabilityCalibrated, category); + return Objects.hash(script, id, name, likelyGender, genderScale, score, probabilityCalibrated); } @@ -291,7 +271,6 @@ public String toString() { sb.append(" genderScale: ").append(toIndentedString(genderScale)).append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); sb.append(" probabilityCalibrated: ").append(toIndentedString(probabilityCalibrated)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/PersonalNameGeoIn.java b/src/main/java/com/namsor/sdk2/model/PersonalNameGeoIn.java index 0e623658..0edde25d 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 ee94a824..08e421aa 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,9 +27,10 @@ import java.util.List; /** - * PersonalNameGeoOut + * Classified geo names */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class PersonalNameGeoOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -79,10 +80,6 @@ public class PersonalNameGeoOut { @SerializedName(SERIALIZED_NAME_PROBABILITY_ALT_CALIBRATED) private Double probabilityAltCalibrated; - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public PersonalNameGeoOut script(String script) { this.script = script; return this; @@ -125,10 +122,10 @@ public PersonalNameGeoOut name(String name) { } /** - * Get name + * The input name. * @return name **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The input name.") public String getName() { return name; } @@ -143,10 +140,12 @@ public PersonalNameGeoOut score(Double score) { } /** - * Get score + * Higher score is better, but score is not normalized. Use calibratedProbability if available. + * minimum: 0 + * maximum: 100 * @return score **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Higher score is better, but score is not normalized. Use calibratedProbability if available. ") public Double getScore() { return score; } @@ -161,10 +160,10 @@ public PersonalNameGeoOut country(String country) { } /** - * Get country + * Most likely country * @return country **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Most likely country ") public String getCountry() { return country; } @@ -179,10 +178,10 @@ public PersonalNameGeoOut countryAlt(String countryAlt) { } /** - * Get countryAlt + * Second best alternative : country * @return countryAlt **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Second best alternative : country ") public String getCountryAlt() { return countryAlt; } @@ -197,10 +196,10 @@ public PersonalNameGeoOut region(String region) { } /** - * Get region + * Most likely region (based on country ISO2 code) * @return region **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Most likely region (based on country ISO2 code)") public String getRegion() { return region; } @@ -215,10 +214,10 @@ public PersonalNameGeoOut topRegion(String topRegion) { } /** - * Get topRegion + * Most likely top region (based on country ISO2 code) * @return topRegion **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Most likely top region (based on country ISO2 code)") public String getTopRegion() { return topRegion; } @@ -233,10 +232,10 @@ public PersonalNameGeoOut subRegion(String subRegion) { } /** - * Get subRegion + * Most likely sub region (based on country ISO2 code) * @return subRegion **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Most likely sub region (based on country ISO2 code)") public String getSubRegion() { return subRegion; } @@ -277,10 +276,10 @@ public PersonalNameGeoOut probabilityCalibrated(Double probabilityCalibrated) { } /** - * Get probabilityCalibrated + * The calibrated probability for country to have been guessed correctly. * @return probabilityCalibrated **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The calibrated probability for country to have been guessed correctly.") public Double getProbabilityCalibrated() { return probabilityCalibrated; } @@ -295,10 +294,10 @@ public PersonalNameGeoOut probabilityAltCalibrated(Double probabilityAltCalibrat } /** - * Get probabilityAltCalibrated + * The calibrated probability for country OR countryAlt to have been guessed correctly. * @return probabilityAltCalibrated **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The calibrated probability for country OR countryAlt to have been guessed correctly.") public Double getProbabilityAltCalibrated() { return probabilityAltCalibrated; } @@ -307,24 +306,6 @@ public void setProbabilityAltCalibrated(Double probabilityAltCalibrated) { this.probabilityAltCalibrated = probabilityAltCalibrated; } - public PersonalNameGeoOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - @Override public boolean equals(java.lang.Object o) { @@ -346,13 +327,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.subRegion, personalNameGeoOut.subRegion) && Objects.equals(this.countriesTop, personalNameGeoOut.countriesTop) && Objects.equals(this.probabilityCalibrated, personalNameGeoOut.probabilityCalibrated) && - Objects.equals(this.probabilityAltCalibrated, personalNameGeoOut.probabilityAltCalibrated) && - Objects.equals(this.category, personalNameGeoOut.category); + Objects.equals(this.probabilityAltCalibrated, personalNameGeoOut.probabilityAltCalibrated); } @Override public int hashCode() { - return Objects.hash(script, id, name, score, country, countryAlt, region, topRegion, subRegion, countriesTop, probabilityCalibrated, probabilityAltCalibrated, category); + return Objects.hash(script, id, name, score, country, countryAlt, region, topRegion, subRegion, countriesTop, probabilityCalibrated, probabilityAltCalibrated); } @@ -372,7 +352,6 @@ public String toString() { sb.append(" countriesTop: ").append(toIndentedString(countriesTop)).append("\n"); sb.append(" probabilityCalibrated: ").append(toIndentedString(probabilityCalibrated)).append("\n"); sb.append(" probabilityAltCalibrated: ").append(toIndentedString(probabilityAltCalibrated)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/PersonalNameIn.java b/src/main/java/com/namsor/sdk2/model/PersonalNameIn.java index 95e160b8..bec47dcc 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+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 1da70c19..da4d3fb5 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.14 + * OpenAPI spec version: 2.0.15 * 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-12T18:00:09.597+02:00[Europe/Berlin]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-17T18:27:27.141+02:00[Europe/Berlin]") public class PersonalNameParsedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -58,10 +58,6 @@ public class PersonalNameParsedOut { @SerializedName(SERIALIZED_NAME_SCORE) private Double score; - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public PersonalNameParsedOut script(String script) { this.script = script; return this; @@ -104,10 +100,10 @@ public PersonalNameParsedOut name(String name) { } /** - * Get name + * The input name * @return name **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The input name") public String getName() { return name; } @@ -122,10 +118,10 @@ public PersonalNameParsedOut nameParserType(String nameParserType) { } /** - * Get nameParserType + * Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order. * @return nameParserType **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order.") public String getNameParserType() { return nameParserType; } @@ -140,10 +136,10 @@ public PersonalNameParsedOut nameParserTypeAlt(String nameParserTypeAlt) { } /** - * Get nameParserTypeAlt + * Second best alternative parsing. Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order. * @return nameParserTypeAlt **/ - @ApiModelProperty(value = "") + @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() { return nameParserTypeAlt; } @@ -176,10 +172,12 @@ public PersonalNameParsedOut score(Double score) { } /** - * Get score + * Higher score is better, but score is not normalized. Use calibratedProbability if available. + * minimum: 0 + * maximum: 100 * @return score **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Higher score is better, but score is not normalized. Use calibratedProbability if available. ") public Double getScore() { return score; } @@ -188,24 +186,6 @@ public void setScore(Double score) { this.score = score; } - public PersonalNameParsedOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - @Override public boolean equals(java.lang.Object o) { @@ -222,13 +202,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.nameParserType, personalNameParsedOut.nameParserType) && Objects.equals(this.nameParserTypeAlt, personalNameParsedOut.nameParserTypeAlt) && Objects.equals(this.firstLastName, personalNameParsedOut.firstLastName) && - Objects.equals(this.score, personalNameParsedOut.score) && - Objects.equals(this.category, personalNameParsedOut.category); + Objects.equals(this.score, personalNameParsedOut.score); } @Override public int hashCode() { - return Objects.hash(script, id, name, nameParserType, nameParserTypeAlt, firstLastName, score, category); + return Objects.hash(script, id, name, nameParserType, nameParserTypeAlt, firstLastName, score); } @@ -243,7 +222,6 @@ public String toString() { sb.append(" nameParserTypeAlt: ").append(toIndentedString(nameParserTypeAlt)).append("\n"); sb.append(" firstLastName: ").append(toIndentedString(firstLastName)).append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/ProperNounCategorizedOut.java b/src/main/java/com/namsor/sdk2/model/ProperNounCategorizedOut.java index db3572a9..6a8641d1 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,9 +25,10 @@ import java.io.IOException; /** - * ProperNounCategorizedOut + * Classified typed proper names */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class ProperNounCategorizedOut { public static final String SERIALIZED_NAME_SCRIPT = "script"; @SerializedName(SERIALIZED_NAME_SCRIPT) @@ -53,10 +54,6 @@ public class ProperNounCategorizedOut { @SerializedName(SERIALIZED_NAME_SCORE) private Double score; - public static final String SERIALIZED_NAME_CATEGORY = "category"; - @SerializedName(SERIALIZED_NAME_CATEGORY) - private String category; - public ProperNounCategorizedOut script(String script) { this.script = script; return this; @@ -99,10 +96,10 @@ public ProperNounCategorizedOut name(String name) { } /** - * Get name + * The input name * @return name **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The input name") public String getName() { return name; } @@ -117,10 +114,10 @@ public ProperNounCategorizedOut commonType(String commonType) { } /** - * Get commonType + * The most likely common name type * @return commonType **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The most likely common name type") public String getCommonType() { return commonType; } @@ -135,10 +132,10 @@ public ProperNounCategorizedOut commonTypeAlt(String commonTypeAlt) { } /** - * Get commonTypeAlt + * Best alternative for : The most likely common name type * @return commonTypeAlt **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Best alternative for : The most likely common name type") public String getCommonTypeAlt() { return commonTypeAlt; } @@ -153,10 +150,12 @@ public ProperNounCategorizedOut score(Double score) { } /** - * Get score + * Higher score is better, but score is not normalized. Use calibratedProbability if available. + * minimum: 0 + * maximum: 100 * @return score **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Higher score is better, but score is not normalized. Use calibratedProbability if available. ") public Double getScore() { return score; } @@ -165,24 +164,6 @@ public void setScore(Double score) { this.score = score; } - public ProperNounCategorizedOut category(String category) { - this.category = category; - return this; - } - - /** - * Get category - * @return category - **/ - @ApiModelProperty(value = "") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - @Override public boolean equals(java.lang.Object o) { @@ -198,13 +179,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.name, properNounCategorizedOut.name) && Objects.equals(this.commonType, properNounCategorizedOut.commonType) && Objects.equals(this.commonTypeAlt, properNounCategorizedOut.commonTypeAlt) && - Objects.equals(this.score, properNounCategorizedOut.score) && - Objects.equals(this.category, properNounCategorizedOut.category); + Objects.equals(this.score, properNounCategorizedOut.score); } @Override public int hashCode() { - return Objects.hash(script, id, name, commonType, commonTypeAlt, score, category); + return Objects.hash(script, id, name, commonType, commonTypeAlt, score); } @@ -218,7 +198,6 @@ public String toString() { sb.append(" commonType: ").append(toIndentedString(commonType)).append("\n"); sb.append(" commonTypeAlt: ").append(toIndentedString(commonTypeAlt)).append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/namsor/sdk2/model/SoftwareVersionOut.java b/src/main/java/com/namsor/sdk2/model/SoftwareVersionOut.java index fedba37b..8cc620bd 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,9 +27,10 @@ import java.util.List; /** - * SoftwareVersionOut + * The software version. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-12T18:00:09.597+02:00[Europe/Berlin]") +@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]") public class SoftwareVersionOut { public static final String SERIALIZED_NAME_SOFTWARE_NAME_AND_VERSION = "softwareNameAndVersion"; @SerializedName(SERIALIZED_NAME_SOFTWARE_NAME_AND_VERSION) @@ -45,10 +46,10 @@ public SoftwareVersionOut softwareNameAndVersion(String softwareNameAndVersion) } /** - * Get softwareNameAndVersion + * The software version * @return softwareNameAndVersion **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The software version") public String getSoftwareNameAndVersion() { return softwareNameAndVersion; } @@ -71,10 +72,10 @@ public SoftwareVersionOut addSoftwareVersionItem(Integer softwareVersionItem) { } /** - * Get softwareVersion + * The software version major minor build * @return softwareVersion **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The software version major minor build") public List getSoftwareVersion() { return softwareVersion; } diff --git a/src/test/java/com/namsor/sdk2/api/AdminApiTest.java b/src/test/java/com/namsor/sdk2/api/AdminApiTest.java index 4292008b..5156676f 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,16 +14,13 @@ package com.namsor.sdk2.api; import com.namsor.sdk2.invoke.ApiException; -import com.namsor.sdk2.model.APIKeyOut; +import com.namsor.sdk2.model.APIClassifierTaxonomyOut; +import com.namsor.sdk2.model.APIClassifiersStatusOut; import com.namsor.sdk2.model.APIPeriodUsageOut; -import com.namsor.sdk2.model.APIPlanSubscriptionOut; -import com.namsor.sdk2.model.APIPlansOut; -import com.namsor.sdk2.model.BillingHistoryOut; -import com.namsor.sdk2.model.BillingInfoInOut; -import com.namsor.sdk2.model.CurrenciesOut; -import com.namsor.sdk2.model.InlineObject; +import com.namsor.sdk2.model.APIServicesOut; +import com.namsor.sdk2.model.APIUsageAggregatedOut; +import com.namsor.sdk2.model.APIUsageHistoryOut; import com.namsor.sdk2.model.SoftwareVersionOut; -import com.namsor.sdk2.model.SystemMetricsOut; import org.junit.Test; import org.junit.Ignore; @@ -41,24 +38,6 @@ public class AdminApiTest { private final AdminApi api = new AdminApi(); - /** - * Add usage credits to an API Key. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void addCreditsTest() throws ApiException { - String apiKey = null; - Long usageCredits = null; - String userMessage = null; - SystemMetricsOut response = api.addCredits(apiKey, usageCredits, userMessage); - - // TODO: test validations - } - /** * Activate/deactivate anonymization for a source. * @@ -77,7 +56,7 @@ public void anonymizeTest() throws ApiException { } /** - * Prints the current status of the classifiers. + * Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices. * * * @@ -86,7 +65,7 @@ public void anonymizeTest() throws ApiException { */ @Test public void apiStatusTest() throws ApiException { - APIPlansOut response = api.apiStatus(); + APIClassifiersStatusOut response = api.apiStatus(); // TODO: test validations } @@ -116,7 +95,7 @@ public void apiUsageTest() throws ApiException { */ @Test public void apiUsageHistoryTest() throws ApiException { - APIPeriodUsageOut response = api.apiUsageHistory(); + APIUsageHistoryOut response = api.apiUsageHistory(); // TODO: test validations } @@ -131,44 +110,13 @@ public void apiUsageHistoryTest() throws ApiException { */ @Test public void apiUsageHistoryAggregateTest() throws ApiException { - APIPeriodUsageOut response = api.apiUsageHistoryAggregate(); + APIUsageAggregatedOut response = api.apiUsageHistoryAggregate(); // TODO: test validations } /** - * List all available plans in the user's preferred currency. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void availablePlansTest() throws ApiException { - String token = null; - APIPlansOut response = api.availablePlans(token); - - // TODO: test validations - } - - /** - * List all available plans in the default currency (usd). - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void availablePlans1Test() throws ApiException { - APIPlansOut response = api.availablePlans1(); - - // TODO: test validations - } - - /** - * List of API services and usage cost in Units (default is 1=ONE Unit). + * List of classification services and usage cost in Units per classification (default is 1=ONE Unit). Some API endpoints (ex. Corridor) combine multiple classifiers. * * * @@ -177,93 +125,13 @@ public void availablePlans1Test() throws ApiException { */ @Test public void availableServicesTest() throws ApiException { - APIPlansOut response = api.availableServices(); - - // TODO: test validations - } - - /** - * List possible currency options for billing (USD, EUR, GBP, ...) - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void billingCurrenciesTest() throws ApiException { - CurrenciesOut response = api.billingCurrencies(); - - // TODO: test validations - } - - /** - * Read the history billing information (invoices paid via Stripe or manually). - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void billingHistoryTest() throws ApiException { - String token = null; - BillingHistoryOut response = api.billingHistory(token); - - // TODO: test validations - } - - /** - * Read the billing information (company name, address, phone, vat ID) - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void billingInfoTest() throws ApiException { - String token = null; - BillingInfoInOut response = api.billingInfo(token); - - // TODO: test validations - } - - /** - * Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void chargeTest() throws ApiException { - InlineObject inlineObject = null; - APIKeyOut response = api.charge(inlineObject); - - // TODO: test validations - } - - /** - * Setting an API Key to a corporate status. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void corporateKeyTest() throws ApiException { - String apiKey = null; - Boolean corporate = null; - api.corporateKey(apiKey, corporate); + APIServicesOut response = api.availableServices(); // TODO: test validations } /** - * Update debug level for a classifier + * Activate/deactivate an API Key. * * * @@ -271,40 +139,10 @@ public void corporateKeyTest() throws ApiException { * if the Api call fails */ @Test - public void debugLevelTest() throws ApiException { - String logger = null; - String level = null; - api.debugLevel(logger, level); - - // TODO: test validations - } - - /** - * Flush counters. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void flushTest() throws ApiException { - api.flush(); - - // TODO: test validations - } - - /** - * Invalidate system caches. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void invalidateCacheTest() throws ApiException { - api.invalidateCache(); + public void disableTest() throws ApiException { + String source = null; + Boolean disabled = null; + api.disable(source, disabled); // TODO: test validations } @@ -326,100 +164,6 @@ public void learnableTest() throws ApiException { // TODO: test validations } - /** - * Get the overall API counter - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void namsorCounterTest() throws ApiException { - SoftwareVersionOut response = api.namsorCounter(); - - // TODO: test validations - } - - /** - * Get the Stripe payment information associated with the current google auth session token. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void paymentInfoTest() throws ApiException { - String token = null; - APIKeyOut response = api.paymentInfo(token); - - // TODO: test validations - } - - /** - * Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void procureKeyTest() throws ApiException { - String token = null; - APIKeyOut response = api.procureKey(token); - - // TODO: test validations - } - - /** - * Remove the user account. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void removeUserAccountTest() throws ApiException { - String token = null; - APIPlanSubscriptionOut response = api.removeUserAccount(token); - - // TODO: test validations - } - - /** - * Remove (on behalf) a user account. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void removeUserAccountOnBehalfTest() throws ApiException { - String apiKey = null; - APIPlanSubscriptionOut response = api.removeUserAccountOnBehalf(apiKey); - - // TODO: test validations - } - - /** - * Stop learning and shutdown system. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void shutdownTest() throws ApiException { - api.shutdown(); - - // TODO: test validations - } - /** * Get the current software version * @@ -435,90 +179,6 @@ public void softwareVersionTest() throws ApiException { // TODO: test validations } - /** - * Print basic source statistics. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void sourceStatsTest() throws ApiException { - String source = null; - SystemMetricsOut response = api.sourceStats(source); - - // TODO: test validations - } - - /** - * Print basic system statistics. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void statsTest() throws ApiException { - SystemMetricsOut response = api.stats(); - - // TODO: test validations - } - - /** - * Connects a Stripe Account. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void stripeConnectTest() throws ApiException { - String scope = null; - String code = null; - String error = null; - String errorDescription = null; - api.stripeConnect(scope, code, error, errorDescription); - - // TODO: test validations - } - - /** - * Subscribe to a give API plan, using the user's preferred or default currency. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void subscribePlanTest() throws ApiException { - String planName = null; - String token = null; - APIPlanSubscriptionOut response = api.subscribePlan(planName, token); - - // TODO: test validations - } - - /** - * Subscribe to a give API plan, using the user's preferred or default currency (admin only). - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void subscribePlanOnBehalfTest() throws ApiException { - String planName = null; - String apiKey = null; - APIPlanSubscriptionOut response = api.subscribePlanOnBehalf(planName, apiKey); - - // TODO: test validations - } - /** * Print the taxonomy classes valid for the given classifier. * @@ -530,124 +190,7 @@ public void subscribePlanOnBehalfTest() throws ApiException { @Test public void taxonomyClassesTest() throws ApiException { String classifierName = null; - APIPlansOut response = api.taxonomyClasses(classifierName); - - // TODO: test validations - } - - /** - * Sets or update the billing information (company name, address, phone, vat ID) - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void updateBillingInfoTest() throws ApiException { - String token = null; - BillingInfoInOut billingInfoInOut = null; - BillingInfoInOut response = api.updateBillingInfo(token, billingInfoInOut); - - // TODO: test validations - } - - /** - * Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void updateLimitTest() throws ApiException { - Integer usageLimit = null; - Boolean hardOrSoft = null; - String token = null; - APIPeriodUsageOut response = api.updateLimit(usageLimit, hardOrSoft, token); - - // TODO: test validations - } - - /** - * Update the default Stripe card associated with the current google auth session token. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void updatePaymentDefaultTest() throws ApiException { - String defautSourceId = null; - String token = null; - APIKeyOut response = api.updatePaymentDefault(defautSourceId, token); - - // TODO: test validations - } - - /** - * Get the user profile associated with the current google auth session token. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void userInfoTest() throws ApiException { - String token = null; - APIKeyOut response = api.userInfo(token); - - // TODO: test validations - } - - /** - * Verifies an email, based on token sent to that email - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void verifyEmailTest() throws ApiException { - String emailToken = null; - APIKeyOut response = api.verifyEmail(emailToken); - - // TODO: test validations - } - - /** - * Verifies an email, based on token sent to that email - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void verifyRemoveEmailTest() throws ApiException { - String emailToken = null; - APIKeyOut response = api.verifyRemoveEmail(emailToken); - - // TODO: test validations - } - - /** - * Vetting of a source. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void vetTest() throws ApiException { - String source = null; - Boolean vetted = null; - api.vet(source, vetted); + APIClassifierTaxonomyOut response = api.taxonomyClasses(classifierName); // TODO: test validations } diff --git a/src/test/java/com/namsor/sdk2/api/ChineseApiTest.java b/src/test/java/com/namsor/sdk2/api/ChineseApiTest.java index 61a5313d..6cf311dd 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,16 +14,20 @@ package com.namsor.sdk2.api; import com.namsor.sdk2.invoke.ApiException; +import com.namsor.sdk2.model.BatchFirstLastNameGenderIn; import com.namsor.sdk2.model.BatchFirstLastNameGenderedOut; import com.namsor.sdk2.model.BatchFirstLastNameIn; +import com.namsor.sdk2.model.BatchMatchPersonalFirstLastNameIn; import com.namsor.sdk2.model.BatchNameMatchCandidatesOut; +import com.namsor.sdk2.model.BatchNameMatchedOut; import com.namsor.sdk2.model.BatchPersonalNameGenderedOut; import com.namsor.sdk2.model.BatchPersonalNameIn; import com.namsor.sdk2.model.BatchPersonalNameParsedOut; import com.namsor.sdk2.model.FirstLastNameGenderedOut; +import com.namsor.sdk2.model.NameMatchCandidatesOut; +import com.namsor.sdk2.model.NameMatchedOut; import com.namsor.sdk2.model.PersonalNameGenderedOut; import com.namsor.sdk2.model.PersonalNameParsedOut; -import com.namsor.sdk2.model.RomanizedNameOut; import org.junit.Test; import org.junit.Ignore; @@ -53,7 +57,7 @@ public class ChineseApiTest { public void chineseNameCandidatesTest() throws ApiException { String chineseSurnameLatin = null; String chineseGivenNameLatin = null; - RomanizedNameOut response = api.chineseNameCandidates(chineseSurnameLatin, chineseGivenNameLatin); + NameMatchCandidatesOut response = api.chineseNameCandidates(chineseSurnameLatin, chineseGivenNameLatin); // TODO: test validations } @@ -84,8 +88,8 @@ public void chineseNameCandidatesBatchTest() throws ApiException { */ @Test public void chineseNameCandidatesGenderBatchTest() throws ApiException { - BatchFirstLastNameIn batchFirstLastNameIn = null; - BatchNameMatchCandidatesOut response = api.chineseNameCandidatesGenderBatch(batchFirstLastNameIn); + BatchFirstLastNameGenderIn batchFirstLastNameGenderIn = null; + BatchNameMatchCandidatesOut response = api.chineseNameCandidatesGenderBatch(batchFirstLastNameGenderIn); // TODO: test validations } @@ -103,7 +107,7 @@ public void chineseNameGenderCandidatesTest() throws ApiException { String chineseSurnameLatin = null; String chineseGivenNameLatin = null; String knownGender = null; - RomanizedNameOut response = api.chineseNameGenderCandidates(chineseSurnameLatin, chineseGivenNameLatin, knownGender); + NameMatchCandidatesOut response = api.chineseNameGenderCandidates(chineseSurnameLatin, chineseGivenNameLatin, knownGender); // TODO: test validations } @@ -121,7 +125,7 @@ public void chineseNameMatchTest() throws ApiException { String chineseSurnameLatin = null; String chineseGivenNameLatin = null; String chineseName = null; - RomanizedNameOut response = api.chineseNameMatch(chineseSurnameLatin, chineseGivenNameLatin, chineseName); + NameMatchedOut response = api.chineseNameMatch(chineseSurnameLatin, chineseGivenNameLatin, chineseName); // TODO: test validations } @@ -136,8 +140,8 @@ public void chineseNameMatchTest() throws ApiException { */ @Test public void chineseNameMatchBatchTest() throws ApiException { - BatchFirstLastNameIn batchFirstLastNameIn = null; - BatchNameMatchCandidatesOut response = api.chineseNameMatchBatch(batchFirstLastNameIn); + BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn = null; + BatchNameMatchedOut response = api.chineseNameMatchBatch(batchMatchPersonalFirstLastNameIn); // TODO: test validations } diff --git a/src/test/java/com/namsor/sdk2/api/GeneralApiTest.java b/src/test/java/com/namsor/sdk2/api/GeneralApiTest.java index 927dc506..1578c8fb 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.14 + * OpenAPI spec version: 2.0.15 * 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 dafa2943..7a5a1f76 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,16 +14,21 @@ package com.namsor.sdk2.api; import com.namsor.sdk2.invoke.ApiException; +import com.namsor.sdk2.model.BatchFirstLastNameGenderIn; import com.namsor.sdk2.model.BatchFirstLastNameGenderedOut; import com.namsor.sdk2.model.BatchFirstLastNameIn; +import com.namsor.sdk2.model.BatchMatchPersonalFirstLastNameIn; import com.namsor.sdk2.model.BatchNameMatchCandidatesOut; +import com.namsor.sdk2.model.BatchNameMatchedOut; import com.namsor.sdk2.model.BatchPersonalNameGenderedOut; import com.namsor.sdk2.model.BatchPersonalNameIn; import com.namsor.sdk2.model.BatchPersonalNameParsedOut; +import com.namsor.sdk2.model.FeedbackLoopOut; import com.namsor.sdk2.model.FirstLastNameGenderedOut; +import com.namsor.sdk2.model.NameMatchCandidatesOut; +import com.namsor.sdk2.model.NameMatchedOut; import com.namsor.sdk2.model.PersonalNameGenderedOut; import com.namsor.sdk2.model.PersonalNameParsedOut; -import com.namsor.sdk2.model.RomanizedNameOut; import org.junit.Test; import org.junit.Ignore; @@ -116,8 +121,8 @@ public void genderJapaneseNamePinyinBatchTest() throws ApiException { */ @Test public void japaneseNameGenderKanjiCandidatesBatchTest() throws ApiException { - BatchFirstLastNameIn batchFirstLastNameIn = null; - BatchNameMatchCandidatesOut response = api.japaneseNameGenderKanjiCandidatesBatch(batchFirstLastNameIn); + BatchFirstLastNameGenderIn batchFirstLastNameGenderIn = null; + BatchNameMatchCandidatesOut response = api.japaneseNameGenderKanjiCandidatesBatch(batchFirstLastNameGenderIn); // TODO: test validations } @@ -135,7 +140,7 @@ public void japaneseNameKanjiCandidatesTest() throws ApiException { String japaneseSurnameLatin = null; String japaneseGivenNameLatin = null; String knownGender = null; - RomanizedNameOut response = api.japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender); + NameMatchCandidatesOut response = api.japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender); // TODO: test validations } @@ -152,7 +157,7 @@ public void japaneseNameKanjiCandidatesTest() throws ApiException { public void japaneseNameKanjiCandidates1Test() throws ApiException { String japaneseSurnameLatin = null; String japaneseGivenNameLatin = null; - RomanizedNameOut response = api.japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin); + NameMatchCandidatesOut response = api.japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin); // TODO: test validations } @@ -185,7 +190,7 @@ public void japaneseNameKanjiCandidatesBatchTest() throws ApiException { public void japaneseNameLatinCandidatesTest() throws ApiException { String japaneseSurnameKanji = null; String japaneseGivenNameKanji = null; - RomanizedNameOut response = api.japaneseNameLatinCandidates(japaneseSurnameKanji, japaneseGivenNameKanji); + NameMatchCandidatesOut response = api.japaneseNameLatinCandidates(japaneseSurnameKanji, japaneseGivenNameKanji); // TODO: test validations } @@ -219,7 +224,7 @@ public void japaneseNameMatchTest() throws ApiException { String japaneseSurnameLatin = null; String japaneseGivenNameLatin = null; String japaneseName = null; - RomanizedNameOut response = api.japaneseNameMatch(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName); + NameMatchedOut response = api.japaneseNameMatch(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName); // TODO: test validations } @@ -234,8 +239,8 @@ public void japaneseNameMatchTest() throws ApiException { */ @Test public void japaneseNameMatchBatchTest() throws ApiException { - BatchFirstLastNameIn batchFirstLastNameIn = null; - BatchNameMatchCandidatesOut response = api.japaneseNameMatchBatch(batchFirstLastNameIn); + BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn = null; + BatchNameMatchedOut response = api.japaneseNameMatchBatch(batchMatchPersonalFirstLastNameIn); // TODO: test validations } @@ -253,7 +258,7 @@ public void japaneseNameMatchFeedbackLoopTest() throws ApiException { String japaneseSurnameLatin = null; String japaneseGivenNameLatin = null; String japaneseName = null; - RomanizedNameOut response = api.japaneseNameMatchFeedbackLoop(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName); + FeedbackLoopOut response = api.japaneseNameMatchFeedbackLoop(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName); // 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 20ad4741..4570048a 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,8 +23,6 @@ import com.namsor.sdk2.model.BatchFirstLastNameIn; import com.namsor.sdk2.model.BatchFirstLastNameOriginedOut; import com.namsor.sdk2.model.BatchFirstLastNameUSRaceEthnicityOut; -import com.namsor.sdk2.model.BatchParsedFullNameGeoIn; -import com.namsor.sdk2.model.BatchParsedFullNameIn; import com.namsor.sdk2.model.BatchPersonalNameGenderedOut; import com.namsor.sdk2.model.BatchPersonalNameGeoIn; import com.namsor.sdk2.model.BatchPersonalNameGeoOut; @@ -388,38 +386,6 @@ public void parseNameGeoBatchTest() throws ApiException { // TODO: test validations } - /** - * Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void parsedGenderBatchTest() throws ApiException { - BatchParsedFullNameIn batchParsedFullNameIn = null; - BatchFirstLastNameGenderedOut response = api.parsedGenderBatch(batchParsedFullNameIn); - - // TODO: test validations - } - - /** - * Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void parsedGenderGeoBatchTest() throws ApiException { - BatchParsedFullNameGeoIn batchParsedFullNameGeoIn = null; - BatchFirstLastNameGenderedOut response = api.parsedGenderGeoBatch(batchParsedFullNameGeoIn); - - // 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 b38bec4c..4b5061e8 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.14 + * OpenAPI spec version: 2.0.15 * 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 21027dd0..d6e12bff 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.14 + * OpenAPI spec version: 2.0.15 * 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 a4b5e1b5..c6fe8de9 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.14 + * OpenAPI spec version: 2.0.15 * 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 0805f9f4..173bbf25 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.14 + * OpenAPI spec version: 2.0.15 * 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 6cd1dd89..8dc497c1 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.14 + * OpenAPI spec version: 2.0.15 * 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 828b9592..f49cf780 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.14 + * OpenAPI spec version: 2.0.15 * 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 e793d793..d439a57b 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.14 + * OpenAPI spec version: 2.0.15 * 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 d3c03b2a..62f6147e 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.14 + * OpenAPI spec version: 2.0.15 * 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 4c6f333d..29326376 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.14 + * OpenAPI spec version: 2.0.15 * 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 c4872798..eccb13dd 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.14 + * OpenAPI spec version: 2.0.15 * 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 e03f5e37..e6393c1e 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.14 + * OpenAPI spec version: 2.0.15 * 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 42eb184b..58eab659 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.14 + * OpenAPI spec version: 2.0.15 * 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 new file mode 100644 index 00000000..6e81ad0a --- /dev/null +++ b/src/test/java/com/namsor/sdk2/model/APIUsageHistoryOutTest.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.15 + * 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.APICounterV2Out; +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 APIUsageHistoryOut + */ +public class APIUsageHistoryOutTest { + private final APIUsageHistoryOut model = new APIUsageHistoryOut(); + + /** + * Model tests for APIUsageHistoryOut + */ + @Test + public void testAPIUsageHistoryOut() { + // TODO: test APIUsageHistoryOut + } + + /** + * Test the property 'detailedUsage' + */ + @Test + public void detailedUsageTest() { + // TODO: test detailedUsage + } + +} diff --git a/src/test/java/com/namsor/sdk2/model/BatchCorridorInTest.java b/src/test/java/com/namsor/sdk2/model/BatchCorridorInTest.java index f365cb85..524ee559 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.14 + * OpenAPI spec version: 2.0.15 * 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 4d38766a..995a1f7f 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.14 + * OpenAPI spec version: 2.0.15 * 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 f42a01a8..fbb1bda9 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.14 + * OpenAPI spec version: 2.0.15 * 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 6dc7bdb8..9ab83cba 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.14 + * OpenAPI spec version: 2.0.15 * 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 58b2d039..ffa01e61 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.14 + * OpenAPI spec version: 2.0.15 * 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 a5d05f8f..1a1ab37f 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.14 + * OpenAPI spec version: 2.0.15 * 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/BatchFirstLastNameGeoZippedInTest.java b/src/test/java/com/namsor/sdk2/model/BatchFirstLastNameGeoZippedInTest.java index 31f3314b..9137b9a7 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.14 + * OpenAPI spec version: 2.0.15 * 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 cc773865..3f0b71c4 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.14 + * OpenAPI spec version: 2.0.15 * 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 91db0356..da617294 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.14 + * OpenAPI spec version: 2.0.15 * 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 15e93e6c..d659f665 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.14 + * OpenAPI spec version: 2.0.15 * 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 10f2ed81..1f37c7dd 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.14 + * OpenAPI spec version: 2.0.15 * 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 0bcb5ea7..cdc1ba94 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.14 + * OpenAPI spec version: 2.0.15 * 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 2119dfbc..e6cb9466 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.14 + * OpenAPI spec version: 2.0.15 * 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 b4907402..21bd033e 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.14 + * OpenAPI spec version: 2.0.15 * 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 85292c7d..d4ff359d 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.14 + * OpenAPI spec version: 2.0.15 * 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 270580c8..83199ea6 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.14 + * OpenAPI spec version: 2.0.15 * 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 01d8fdde..5526f105 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.14 + * OpenAPI spec version: 2.0.15 * 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 4b9e052e..edce73a0 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.14 + * OpenAPI spec version: 2.0.15 * 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 9dd43800..dc4101b5 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.14 + * OpenAPI spec version: 2.0.15 * 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 35182406..8e180d59 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.14 + * OpenAPI spec version: 2.0.15 * 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 c7191cbc..54c2a5d0 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.14 + * OpenAPI spec version: 2.0.15 * 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 2aa4708c..02614055 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.14 + * OpenAPI spec version: 2.0.15 * 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 f9eb3300..fea27b56 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.14 + * OpenAPI spec version: 2.0.15 * 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 fdff5f61..4858de04 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.14 + * OpenAPI spec version: 2.0.15 * 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 10730989..c4a74da7 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.14 + * OpenAPI spec version: 2.0.15 * 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 f1c2cbab..6f0b4fd0 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -83,12 +83,4 @@ public void scriptTest() { // TODO: test script } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - } diff --git a/src/test/java/com/namsor/sdk2/model/FeedbackLoopOutTest.java b/src/test/java/com/namsor/sdk2/model/FeedbackLoopOutTest.java index 47bd3833..7fce7e57 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.14 + * OpenAPI spec version: 2.0.15 * 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 d6b4ed63..6ff0da0e 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -122,12 +122,4 @@ public void ethnicitiesTopTest() { // TODO: test ethnicitiesTop } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - } diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameGenderInTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameGenderInTest.java index aeda96f5..d13dd3fa 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.14 + * OpenAPI spec version: 2.0.15 * 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 0926df57..77da4a76 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -104,12 +104,4 @@ public void probabilityCalibratedTest() { // TODO: test probabilityCalibrated } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - } diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoInTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoInTest.java index 3c0f3c90..cc670b57 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.14 + * OpenAPI spec version: 2.0.15 * 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/FirstLastNameGeoZippedInTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameGeoZippedInTest.java index ae492a4a..4a28f2f7 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.14 + * OpenAPI spec version: 2.0.15 * 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 c1c442c5..ea3adea7 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.14 + * OpenAPI spec version: 2.0.15 * 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 caeb2f19..92f59694 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -146,12 +146,4 @@ public void probabilityAltCalibratedTest() { // TODO: test probabilityAltCalibrated } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - } diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNameOutTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameOutTest.java index 8fb5d4bc..4c4510c4 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -72,12 +72,4 @@ public void lastNameTest() { // TODO: test lastName } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - } diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneCodedOutTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneCodedOutTest.java index 6eb1f854..d2684396 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -160,14 +160,6 @@ public void scoreTest() { // TODO: test score } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - /** * Test the property 'countryIso2' */ diff --git a/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberGeoInTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberGeoInTest.java index 53e9aa99..aab967fb 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.14 + * OpenAPI spec version: 2.0.15 * 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/FirstLastNamePhoneNumberInTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNamePhoneNumberInTest.java index 23cb2294..e2f07f07 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.14 + * OpenAPI spec version: 2.0.15 * 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/FirstLastNameUSRaceEthnicityOutTest.java b/src/test/java/com/namsor/sdk2/model/FirstLastNameUSRaceEthnicityOutTest.java index 07fc718f..8abf23a2 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -122,12 +122,4 @@ public void probabilityAltCalibratedTest() { // TODO: test probabilityAltCalibrated } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - } diff --git a/src/test/java/com/namsor/sdk2/model/MatchPersonalFirstLastNameInTest.java b/src/test/java/com/namsor/sdk2/model/MatchPersonalFirstLastNameInTest.java index 50c9b532..3b82f661 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.14 + * OpenAPI spec version: 2.0.15 * 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 b57629b4..6fd1a909 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.14 + * OpenAPI spec version: 2.0.15 * 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 e975caca..c1406804 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.14 + * OpenAPI spec version: 2.0.15 * 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 7b970a38..c4ec164f 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.14 + * OpenAPI spec version: 2.0.15 * 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 70b57281..a56da845 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -91,12 +91,4 @@ public void matchCandidatesTest() { // TODO: test matchCandidates } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - } diff --git a/src/test/java/com/namsor/sdk2/model/NameMatchedOutTest.java b/src/test/java/com/namsor/sdk2/model/NameMatchedOutTest.java index a19448a6..f7a77cfe 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -72,12 +72,4 @@ public void scoreTest() { // TODO: test score } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - } diff --git a/src/test/java/com/namsor/sdk2/model/PersonalNameGenderedOutTest.java b/src/test/java/com/namsor/sdk2/model/PersonalNameGenderedOutTest.java index 4c7d9202..cdd44de9 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -96,12 +96,4 @@ public void probabilityCalibratedTest() { // TODO: test probabilityCalibrated } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - } diff --git a/src/test/java/com/namsor/sdk2/model/PersonalNameGeoInTest.java b/src/test/java/com/namsor/sdk2/model/PersonalNameGeoInTest.java index 38a3a793..7d89af65 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.14 + * OpenAPI spec version: 2.0.15 * 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 be0c02ab..6b020725 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -138,12 +138,4 @@ public void probabilityAltCalibratedTest() { // TODO: test probabilityAltCalibrated } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - } diff --git a/src/test/java/com/namsor/sdk2/model/PersonalNameInTest.java b/src/test/java/com/namsor/sdk2/model/PersonalNameInTest.java index 5bf5acb2..a504f9a8 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.14 + * OpenAPI spec version: 2.0.15 * 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 2236ceea..985d0402 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -97,12 +97,4 @@ public void scoreTest() { // TODO: test score } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - } diff --git a/src/test/java/com/namsor/sdk2/model/ProperNounCategorizedOutTest.java b/src/test/java/com/namsor/sdk2/model/ProperNounCategorizedOutTest.java index f9ad0c90..794f9325 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.14 + * OpenAPI spec version: 2.0.15 * Contact: contact@namsor.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -88,12 +88,4 @@ public void scoreTest() { // TODO: test score } - /** - * Test the property 'category' - */ - @Test - public void categoryTest() { - // TODO: test category - } - } diff --git a/src/test/java/com/namsor/sdk2/model/SoftwareVersionOutTest.java b/src/test/java/com/namsor/sdk2/model/SoftwareVersionOutTest.java index e6ecbe1b..3d498935 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.14 + * OpenAPI spec version: 2.0.15 * 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 ab662812..36479f6c 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.14 API) - +AdminApi (namsor-sdk2 2.0.15 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 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,13 +13,13 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,13 +13,13 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,13 +13,13 @@ @@ -13,13 +13,13 @@ @@ -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 @@ @@ -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,13 +13,13 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,13 +13,13 @@ @@ -13,7 +13,7 @@ @@ -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 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@