Skip to content

Commit 7952a1f

Browse files
author
NamSor SAS
committed
Minor update
1 parent c983c27 commit 7952a1f

File tree

520 files changed

+1668
-1221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

520 files changed

+1668
-1221
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# namsor-sdk2
22

33
NamSor API v2
4-
- API version: 2.0.5
5-
- Build date: 2019-07-30T14:11:33.108+02:00[Europe/Berlin]
4+
- API version: 2.0.6
5+
- Build date: 2019-10-28T19:07:05.363+01:00[Europe/Berlin]
66

77
NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it!
88

@@ -119,8 +119,8 @@ Class | Method | HTTP request | Description
119119
*AdminApi* | [**apiUsage**](docs/AdminApi.md#apiUsage) | **GET** /api2/json/apiUsage | Print current API usage.
120120
*AdminApi* | [**apiUsageHistory**](docs/AdminApi.md#apiUsageHistory) | **GET** /api2/json/apiUsageHistory | Print historical API usage.
121121
*AdminApi* | [**apiUsageHistoryAggregate**](docs/AdminApi.md#apiUsageHistoryAggregate) | **GET** /api2/json/apiUsageHistoryAggregate | Print historical API usage (in an aggregated view, by service, by day/hour/min).
122-
*AdminApi* | [**availablePlans**](docs/AdminApi.md#availablePlans) | **GET** /api2/json/availablePlans/{token} | List all available plans in the user's preferred currency.
123-
*AdminApi* | [**availablePlans1**](docs/AdminApi.md#availablePlans1) | **GET** /api2/json/availablePlans | List all available plans in the default currency (usd).
122+
*AdminApi* | [**availablePlans**](docs/AdminApi.md#availablePlans) | **GET** /api2/json/availablePlans | List all available plans in the default currency (usd).
123+
*AdminApi* | [**availablePlans1**](docs/AdminApi.md#availablePlans1) | **GET** /api2/json/availablePlans/{token} | List all available plans in the user's preferred currency.
124124
*AdminApi* | [**availableServices**](docs/AdminApi.md#availableServices) | **GET** /api2/json/apiServices | List of API services and usage cost in Units (default is 1=ONE Unit).
125125
*AdminApi* | [**billingCurrencies**](docs/AdminApi.md#billingCurrencies) | **GET** /api2/json/billingCurrencies | List possible currency options for billing (USD, EUR, GBP, ...)
126126
*AdminApi* | [**billingHistory**](docs/AdminApi.md#billingHistory) | **GET** /api2/json/billingHistory/{token} | Read the history billing information (invoices paid via Stripe or manually).

docs/AdminApi.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Method | HTTP request | Description
99
[**apiUsage**](AdminApi.md#apiUsage) | **GET** /api2/json/apiUsage | Print current API usage.
1010
[**apiUsageHistory**](AdminApi.md#apiUsageHistory) | **GET** /api2/json/apiUsageHistory | Print historical API usage.
1111
[**apiUsageHistoryAggregate**](AdminApi.md#apiUsageHistoryAggregate) | **GET** /api2/json/apiUsageHistoryAggregate | Print historical API usage (in an aggregated view, by service, by day/hour/min).
12-
[**availablePlans**](AdminApi.md#availablePlans) | **GET** /api2/json/availablePlans/{token} | List all available plans in the user's preferred currency.
13-
[**availablePlans1**](AdminApi.md#availablePlans1) | **GET** /api2/json/availablePlans | List all available plans in the default currency (usd).
12+
[**availablePlans**](AdminApi.md#availablePlans) | **GET** /api2/json/availablePlans | List all available plans in the default currency (usd).
13+
[**availablePlans1**](AdminApi.md#availablePlans1) | **GET** /api2/json/availablePlans/{token} | List all available plans in the user's preferred currency.
1414
[**availableServices**](AdminApi.md#availableServices) | **GET** /api2/json/apiServices | List of API services and usage cost in Units (default is 1=ONE Unit).
1515
[**billingCurrencies**](AdminApi.md#billingCurrencies) | **GET** /api2/json/billingCurrencies | List possible currency options for billing (USD, EUR, GBP, ...)
1616
[**billingHistory**](AdminApi.md#billingHistory) | **GET** /api2/json/billingHistory/{token} | Read the history billing information (invoices paid via Stripe or manually).
@@ -304,9 +304,9 @@ This endpoint does not need any parameter.
304304

305305
<a name="availablePlans"></a>
306306
# **availablePlans**
307-
> APIPlansOut availablePlans(token)
307+
> APIPlansOut availablePlans()
308308
309-
List all available plans in the user&#39;s preferred currency.
309+
List all available plans in the default currency (usd).
310310

311311
### Example
312312
```java
@@ -326,9 +326,8 @@ api_key.setApiKey("YOUR API KEY");
326326
//api_key.setApiKeyPrefix("Token");
327327

328328
AdminApi apiInstance = new AdminApi();
329-
String token = "token_example"; // String |
330329
try {
331-
APIPlansOut result = apiInstance.availablePlans(token);
330+
APIPlansOut result = apiInstance.availablePlans();
332331
System.out.println(result);
333332
} catch (ApiException e) {
334333
System.err.println("Exception when calling AdminApi#availablePlans");
@@ -337,10 +336,7 @@ try {
337336
```
338337

339338
### Parameters
340-
341-
Name | Type | Description | Notes
342-
------------- | ------------- | ------------- | -------------
343-
**token** | **String**| |
339+
This endpoint does not need any parameter.
344340

345341
### Return type
346342

@@ -357,9 +353,9 @@ Name | Type | Description | Notes
357353

358354
<a name="availablePlans1"></a>
359355
# **availablePlans1**
360-
> APIPlansOut availablePlans1()
356+
> APIPlansOut availablePlans1(token)
361357
362-
List all available plans in the default currency (usd).
358+
List all available plans in the user&#39;s preferred currency.
363359

364360
### Example
365361
```java
@@ -379,8 +375,9 @@ api_key.setApiKey("YOUR API KEY");
379375
//api_key.setApiKeyPrefix("Token");
380376

381377
AdminApi apiInstance = new AdminApi();
378+
String token = "token_example"; // String |
382379
try {
383-
APIPlansOut result = apiInstance.availablePlans1();
380+
APIPlansOut result = apiInstance.availablePlans1(token);
384381
System.out.println(result);
385382
} catch (ApiException e) {
386383
System.err.println("Exception when calling AdminApi#availablePlans1");
@@ -389,7 +386,10 @@ try {
389386
```
390387

391388
### Parameters
392-
This endpoint does not need any parameter.
389+
390+
Name | Type | Description | Notes
391+
------------- | ------------- | ------------- | -------------
392+
**token** | **String**| |
393393

394394
### Return type
395395

docs/FirstLastNameDiasporaedOut.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**ethnicity** | **String** | | [optional]
1313
**lifted** | **Boolean** | | [optional]
1414
**countryIso2** | **String** | | [optional]
15+
**ethnicitiesTop** | **List&lt;String&gt;** | List ethnicities (top 10) | [optional]
1516

1617

1718

docs/FirstLastNameOriginedOut.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**lastName** | **String** | | [optional]
1010
**countryOrigin** | **String** | Most likely country of Origin | [optional]
1111
**countryOriginAlt** | **String** | Second best alternative : country of Origin | [optional]
12+
**countriesOriginTop** | **List&lt;String&gt;** | List countries of Origin (top 10) | [optional]
1213
**score** | **Double** | Compatibility to NamSor_v1 Origin score value | [optional]
1314
**regionOrigin** | **String** | Most likely region of Origin (based on countryOrigin ISO2 code) | [optional]
1415
**topRegionOrigin** | **String** | Most likely region of Origin (based on countryOrigin ISO2 code) | [optional]

docs/FirstLastNameUSRaceEthnicityOut.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**raceEthnicityAlt** | [**RaceEthnicityAltEnum**](#RaceEthnicityAltEnum) | Second most likely US &#39;race&#39;/ethnicity | [optional]
1111
**raceEthnicity** | [**RaceEthnicityEnum**](#RaceEthnicityEnum) | Most likely US &#39;race&#39;/ethnicity | [optional]
1212
**score** | **Double** | Compatibility to NamSor_v1 Origin score value | [optional]
13+
**raceEthnicitiesTop** | **List&lt;String&gt;** | List &#39;race&#39;/ethnicities | [optional]
1314

1415

1516
<a name="RaceEthnicityAltEnum"></a>

src/main/java/com/namsor/sdk2/api/AdminApi.java

+37-37
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* NamSor API v2
33
* NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it!
44
*
5-
* OpenAPI spec version: 2.0.5
5+
* OpenAPI spec version: 2.0.6
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -671,18 +671,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
671671
}
672672
/**
673673
* Build call for availablePlans
674-
* @param token (required)
675674
* @param progressListener Progress listener
676675
* @param progressRequestListener Progress request listener
677676
* @return Call to execute
678677
* @throws ApiException If fail to serialize the request body object
679678
*/
680-
public com.squareup.okhttp.Call availablePlansCall(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
679+
public com.squareup.okhttp.Call availablePlansCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
681680
Object localVarPostBody = new Object();
682681

683682
// create path and map variables
684-
String localVarPath = "/api2/json/availablePlans/{token}"
685-
.replaceAll("\\{" + "token" + "\\}", apiClient.escapeString(token.toString()));
683+
String localVarPath = "/api2/json/availablePlans";
686684

687685
List<Pair> localVarQueryParams = new ArrayList<Pair>();
688686
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
@@ -719,53 +717,45 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
719717
}
720718

721719
@SuppressWarnings("rawtypes")
722-
private com.squareup.okhttp.Call availablePlansValidateBeforeCall(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
723-
724-
// verify the required parameter 'token' is set
725-
if (token == null) {
726-
throw new ApiException("Missing the required parameter 'token' when calling availablePlans(Async)");
727-
}
720+
private com.squareup.okhttp.Call availablePlansValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
728721

729722

730-
com.squareup.okhttp.Call call = availablePlansCall(token, progressListener, progressRequestListener);
723+
com.squareup.okhttp.Call call = availablePlansCall(progressListener, progressRequestListener);
731724
return call;
732725

733726
}
734727

735728
/**
736-
* List all available plans in the user&#39;s preferred currency.
729+
* List all available plans in the default currency (usd).
737730
*
738-
* @param token (required)
739731
* @return APIPlansOut
740732
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
741733
*/
742-
public APIPlansOut availablePlans(String token) throws ApiException {
743-
ApiResponse<APIPlansOut> resp = availablePlansWithHttpInfo(token);
734+
public APIPlansOut availablePlans() throws ApiException {
735+
ApiResponse<APIPlansOut> resp = availablePlansWithHttpInfo();
744736
return resp.getData();
745737
}
746738

747739
/**
748-
* List all available plans in the user&#39;s preferred currency.
740+
* List all available plans in the default currency (usd).
749741
*
750-
* @param token (required)
751742
* @return ApiResponse&lt;APIPlansOut&gt;
752743
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
753744
*/
754-
public ApiResponse<APIPlansOut> availablePlansWithHttpInfo(String token) throws ApiException {
755-
com.squareup.okhttp.Call call = availablePlansValidateBeforeCall(token, null, null);
745+
public ApiResponse<APIPlansOut> availablePlansWithHttpInfo() throws ApiException {
746+
com.squareup.okhttp.Call call = availablePlansValidateBeforeCall(null, null);
756747
Type localVarReturnType = new TypeToken<APIPlansOut>(){}.getType();
757748
return apiClient.execute(call, localVarReturnType);
758749
}
759750

760751
/**
761-
* List all available plans in the user&#39;s preferred currency. (asynchronously)
752+
* List all available plans in the default currency (usd). (asynchronously)
762753
*
763-
* @param token (required)
764754
* @param callback The callback to be executed when the API call finishes
765755
* @return The request call
766756
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
767757
*/
768-
public com.squareup.okhttp.Call availablePlansAsync(String token, final ApiCallback<APIPlansOut> callback) throws ApiException {
758+
public com.squareup.okhttp.Call availablePlansAsync(final ApiCallback<APIPlansOut> callback) throws ApiException {
769759

770760
ProgressResponseBody.ProgressListener progressListener = null;
771761
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -786,23 +776,25 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
786776
};
787777
}
788778

789-
com.squareup.okhttp.Call call = availablePlansValidateBeforeCall(token, progressListener, progressRequestListener);
779+
com.squareup.okhttp.Call call = availablePlansValidateBeforeCall(progressListener, progressRequestListener);
790780
Type localVarReturnType = new TypeToken<APIPlansOut>(){}.getType();
791781
apiClient.executeAsync(call, localVarReturnType, callback);
792782
return call;
793783
}
794784
/**
795785
* Build call for availablePlans1
786+
* @param token (required)
796787
* @param progressListener Progress listener
797788
* @param progressRequestListener Progress request listener
798789
* @return Call to execute
799790
* @throws ApiException If fail to serialize the request body object
800791
*/
801-
public com.squareup.okhttp.Call availablePlans1Call(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
792+
public com.squareup.okhttp.Call availablePlans1Call(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
802793
Object localVarPostBody = new Object();
803794

804795
// create path and map variables
805-
String localVarPath = "/api2/json/availablePlans";
796+
String localVarPath = "/api2/json/availablePlans/{token}"
797+
.replaceAll("\\{" + "token" + "\\}", apiClient.escapeString(token.toString()));
806798

807799
List<Pair> localVarQueryParams = new ArrayList<Pair>();
808800
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
@@ -839,45 +831,53 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
839831
}
840832

841833
@SuppressWarnings("rawtypes")
842-
private com.squareup.okhttp.Call availablePlans1ValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
834+
private com.squareup.okhttp.Call availablePlans1ValidateBeforeCall(String token, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
835+
836+
// verify the required parameter 'token' is set
837+
if (token == null) {
838+
throw new ApiException("Missing the required parameter 'token' when calling availablePlans1(Async)");
839+
}
843840

844841

845-
com.squareup.okhttp.Call call = availablePlans1Call(progressListener, progressRequestListener);
842+
com.squareup.okhttp.Call call = availablePlans1Call(token, progressListener, progressRequestListener);
846843
return call;
847844

848845
}
849846

850847
/**
851-
* List all available plans in the default currency (usd).
848+
* List all available plans in the user&#39;s preferred currency.
852849
*
850+
* @param token (required)
853851
* @return APIPlansOut
854852
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
855853
*/
856-
public APIPlansOut availablePlans1() throws ApiException {
857-
ApiResponse<APIPlansOut> resp = availablePlans1WithHttpInfo();
854+
public APIPlansOut availablePlans1(String token) throws ApiException {
855+
ApiResponse<APIPlansOut> resp = availablePlans1WithHttpInfo(token);
858856
return resp.getData();
859857
}
860858

861859
/**
862-
* List all available plans in the default currency (usd).
860+
* List all available plans in the user&#39;s preferred currency.
863861
*
862+
* @param token (required)
864863
* @return ApiResponse&lt;APIPlansOut&gt;
865864
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
866865
*/
867-
public ApiResponse<APIPlansOut> availablePlans1WithHttpInfo() throws ApiException {
868-
com.squareup.okhttp.Call call = availablePlans1ValidateBeforeCall(null, null);
866+
public ApiResponse<APIPlansOut> availablePlans1WithHttpInfo(String token) throws ApiException {
867+
com.squareup.okhttp.Call call = availablePlans1ValidateBeforeCall(token, null, null);
869868
Type localVarReturnType = new TypeToken<APIPlansOut>(){}.getType();
870869
return apiClient.execute(call, localVarReturnType);
871870
}
872871

873872
/**
874-
* List all available plans in the default currency (usd). (asynchronously)
873+
* List all available plans in the user&#39;s preferred currency. (asynchronously)
875874
*
875+
* @param token (required)
876876
* @param callback The callback to be executed when the API call finishes
877877
* @return The request call
878878
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
879879
*/
880-
public com.squareup.okhttp.Call availablePlans1Async(final ApiCallback<APIPlansOut> callback) throws ApiException {
880+
public com.squareup.okhttp.Call availablePlans1Async(String token, final ApiCallback<APIPlansOut> callback) throws ApiException {
881881

882882
ProgressResponseBody.ProgressListener progressListener = null;
883883
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -898,7 +898,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
898898
};
899899
}
900900

901-
com.squareup.okhttp.Call call = availablePlans1ValidateBeforeCall(progressListener, progressRequestListener);
901+
com.squareup.okhttp.Call call = availablePlans1ValidateBeforeCall(token, progressListener, progressRequestListener);
902902
Type localVarReturnType = new TypeToken<APIPlansOut>(){}.getType();
903903
apiClient.executeAsync(call, localVarReturnType, callback);
904904
return call;

src/main/java/com/namsor/sdk2/api/ChineseApi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* NamSor API v2
33
* NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it!
44
*
5-
* OpenAPI spec version: 2.0.5
5+
* OpenAPI spec version: 2.0.6
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/com/namsor/sdk2/api/PersonalApi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* NamSor API v2
33
* NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it!
44
*
5-
* OpenAPI spec version: 2.0.5
5+
* OpenAPI spec version: 2.0.6
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)