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