Skip to content

Commit

Permalink
Generate version 5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Smooch Bot committed Jan 17, 2019
1 parent 15be933 commit f417daa
Show file tree
Hide file tree
Showing 98 changed files with 175 additions and 111 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>io.smooch</groupId>
<artifactId>api</artifactId>
<version>5.2.0</version>
<version>5.3.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -48,7 +48,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "io.smooch:api:5.2.0"
compile "io.smooch:api:5.3.0"
```

## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'io.smooch'
version = '5.2.0'
version = '5.3.0'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "io.smooch",
name := "api",
version := "5.2.0",
version := "5.3.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
8 changes: 6 additions & 2 deletions docs/IntegrationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ Name | Type | Description | Notes

<a name="listIntegrations"></a>
# **listIntegrations**
> ListIntegrationsResponse listIntegrations(appId, types)
> ListIntegrationsResponse listIntegrations(appId, types, limit, offset)


Expand All @@ -379,8 +379,10 @@ jwt.setApiKeyPrefix("Bearer");
IntegrationApi apiInstance = new IntegrationApi();
String appId = "appId_example"; // String | Identifies the app.
String types = "types_example"; // String | List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types=*twilio*,*line*.
Integer limit = 25; // Integer | The number of records to return.
Integer offset = 0; // Integer | The number of initial records to skip before picking records to return.
try {
ListIntegrationsResponse result = apiInstance.listIntegrations(appId, types);
ListIntegrationsResponse result = apiInstance.listIntegrations(appId, types, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IntegrationApi#listIntegrations");
Expand All @@ -394,6 +396,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**appId** | **String**| Identifies the app. |
**types** | **String**| List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types&#x3D;*twilio*,*line*. | [optional]
**limit** | **Integer**| The number of records to return. | [optional] [default to 25]
**offset** | **Integer**| The number of initial records to skip before picking records to return. | [optional] [default to 0]

### Return type

Expand Down
2 changes: 2 additions & 0 deletions docs/ListIntegrationsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**integrations** | [**List&lt;Integration&gt;**](Integration.md) | The list of integrations. | [optional]
**hasMore** | **Boolean** | Flag indicating if there are more integrations that are not present in the response. | [optional]
**offset** | **Integer** | The number of integration records skipped in the returned list. | [optional]



2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>api</artifactId>
<packaging>jar</packaging>
<name>api</name>
<version>5.2.0</version>
<version>5.3.0</version>
<url>https://github.com/swagger-api/swagger-codegen</url>
<description>Swagger Java</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/ApiCallback.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/smooch/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down Expand Up @@ -158,7 +158,7 @@ public ApiClient() {
this.lenientDatetimeFormat = true;

// Set default User-Agent.
setUserAgent("Swagger-Codegen/5.2.0/java");
setUserAgent("Swagger-Codegen/5.3.0/java");

// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/ApiResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/GzipRequestInterceptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/ProgressRequestBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/ProgressResponseBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/api/AppApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/api/AppUserApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/api/AttachmentsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/api/ConversationApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
32 changes: 22 additions & 10 deletions src/main/java/io/smooch/client/api/IntegrationApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down Expand Up @@ -880,12 +880,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* Build call for listIntegrations
* @param appId Identifies the app. (required)
* @param types List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types&#x3D;*twilio*,*line*. (optional)
* @param limit The number of records to return. (optional, default to 25)
* @param offset The number of initial records to skip before picking records to return. (optional, default to 0)
* @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 listIntegrationsCall(String appId, String types, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
public com.squareup.okhttp.Call listIntegrationsCall(String appId, String types, Integer limit, Integer offset, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;

// create path and map variables
Expand All @@ -895,6 +897,10 @@ public com.squareup.okhttp.Call listIntegrationsCall(String appId, String types,
List<Pair> localVarQueryParams = new ArrayList<Pair>();
if (types != null)
localVarQueryParams.addAll(apiClient.parameterToPairs("", "types", types));
if (limit != null)
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
if (offset != null)
localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));

Map<String, String> localVarHeaderParams = new HashMap<String, String>();

Expand Down Expand Up @@ -929,15 +935,15 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
}

@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call listIntegrationsValidateBeforeCall(String appId, String types, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call listIntegrationsValidateBeforeCall(String appId, String types, Integer limit, Integer offset, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {

// verify the required parameter 'appId' is set
if (appId == null) {
throw new ApiException("Missing the required parameter 'appId' when calling listIntegrations(Async)");
}


com.squareup.okhttp.Call call = listIntegrationsCall(appId, types, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = listIntegrationsCall(appId, types, limit, offset, progressListener, progressRequestListener);
return call;


Expand All @@ -951,11 +957,13 @@ private com.squareup.okhttp.Call listIntegrationsValidateBeforeCall(String appId
* List integrations for the specified app.
* @param appId Identifies the app. (required)
* @param types List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types&#x3D;*twilio*,*line*. (optional)
* @param limit The number of records to return. (optional, default to 25)
* @param offset The number of initial records to skip before picking records to return. (optional, default to 0)
* @return ListIntegrationsResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ListIntegrationsResponse listIntegrations(String appId, String types) throws ApiException {
ApiResponse<ListIntegrationsResponse> resp = listIntegrationsWithHttpInfo(appId, types);
public ListIntegrationsResponse listIntegrations(String appId, String types, Integer limit, Integer offset) throws ApiException {
ApiResponse<ListIntegrationsResponse> resp = listIntegrationsWithHttpInfo(appId, types, limit, offset);
return resp.getData();
}

Expand All @@ -964,11 +972,13 @@ public ListIntegrationsResponse listIntegrations(String appId, String types) thr
* List integrations for the specified app.
* @param appId Identifies the app. (required)
* @param types List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types&#x3D;*twilio*,*line*. (optional)
* @param limit The number of records to return. (optional, default to 25)
* @param offset The number of initial records to skip before picking records to return. (optional, default to 0)
* @return ApiResponse&lt;ListIntegrationsResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<ListIntegrationsResponse> listIntegrationsWithHttpInfo(String appId, String types) throws ApiException {
com.squareup.okhttp.Call call = listIntegrationsValidateBeforeCall(appId, types, null, null);
public ApiResponse<ListIntegrationsResponse> listIntegrationsWithHttpInfo(String appId, String types, Integer limit, Integer offset) throws ApiException {
com.squareup.okhttp.Call call = listIntegrationsValidateBeforeCall(appId, types, limit, offset, null, null);
Type localVarReturnType = new TypeToken<ListIntegrationsResponse>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
Expand All @@ -978,11 +988,13 @@ public ApiResponse<ListIntegrationsResponse> listIntegrationsWithHttpInfo(String
* List integrations for the specified app.
* @param appId Identifies the app. (required)
* @param types List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types&#x3D;*twilio*,*line*. (optional)
* @param limit The number of records to return. (optional, default to 25)
* @param offset The number of initial records to skip before picking records to return. (optional, default to 0)
* @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 listIntegrationsAsync(String appId, String types, final ApiCallback<ListIntegrationsResponse> callback) throws ApiException {
public com.squareup.okhttp.Call listIntegrationsAsync(String appId, String types, Integer limit, Integer offset, final ApiCallback<ListIntegrationsResponse> callback) throws ApiException {

ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
Expand All @@ -1003,7 +1015,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
};
}

com.squareup.okhttp.Call call = listIntegrationsValidateBeforeCall(appId, types, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = listIntegrationsValidateBeforeCall(appId, types, limit, offset, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<ListIntegrationsResponse>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/smooch/client/api/MenuApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smooch
* The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
*
* OpenAPI spec version: 5.2
* OpenAPI spec version: 5.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Loading

0 comments on commit f417daa

Please sign in to comment.