Skip to content

Commit

Permalink
Generate version 2.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
christiaanderidder committed Jul 25, 2019
1 parent 90bf731 commit fcca5cb
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'com.channelengine.channel.apiclient'
version = '2.8.1'
version = '2.8.2'

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 := "com.channelengine.channel.apiclient",
name := "channel-api-client-java",
version := "2.8.1",
version := "2.8.2",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
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>channel-api-client-java</artifactId>
<packaging>jar</packaging>
<name>channel-api-client-java</name>
<version>2.8.1</version>
<version>2.8.2</version>
<url>https://github.com/channelengine/channel-api-client-java</url>
<description>ChannelEngine Channel API Client for java</description>
<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public ApiClient() {
json = new JSON();

// Set default User-Agent.
setUserAgent("Swagger-Codegen/2.8.1/java");
setUserAgent("Swagger-Codegen/2.8.2/java");

// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,18 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}
/**
* Build call for returnGetDeclaredByMerchant
* @param createdSince (optional)
* @param createdSince Deprecated, please use FromDate instead. (optional)
* @param statuses Return status(es) to filter on (optional)
* @param reasons Return reason(s) to filter on (optional)
* @param fromDate Filter on the creation date, starting from this date. This date is inclusive. (optional)
* @param toDate Filter on the creation date, until this date. This date is exclusive. (optional)
* @param page The page to filter on. Starts at 1. (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 returnGetDeclaredByMerchantCall(OffsetDateTime createdSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
public com.squareup.okhttp.Call returnGetDeclaredByMerchantCall(OffsetDateTime createdSince, List<String> statuses, List<String> reasons, OffsetDateTime fromDate, OffsetDateTime toDate, Integer page, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;

// create path and map variables
Expand All @@ -197,6 +202,16 @@ public com.squareup.okhttp.Call returnGetDeclaredByMerchantCall(OffsetDateTime c
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
if (createdSince != null)
localVarQueryParams.addAll(apiClient.parameterToPair("createdSince", createdSince));
if (statuses != null)
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "statuses", statuses));
if (reasons != null)
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "reasons", reasons));
if (fromDate != null)
localVarQueryParams.addAll(apiClient.parameterToPair("fromDate", fromDate));
if (toDate != null)
localVarQueryParams.addAll(apiClient.parameterToPair("toDate", toDate));
if (page != null)
localVarQueryParams.addAll(apiClient.parameterToPair("page", page));

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

Expand Down Expand Up @@ -231,48 +246,63 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
}

@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call returnGetDeclaredByMerchantValidateBeforeCall(OffsetDateTime createdSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call returnGetDeclaredByMerchantValidateBeforeCall(OffsetDateTime createdSince, List<String> statuses, List<String> reasons, OffsetDateTime fromDate, OffsetDateTime toDate, Integer page, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {


com.squareup.okhttp.Call call = returnGetDeclaredByMerchantCall(createdSince, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = returnGetDeclaredByMerchantCall(createdSince, statuses, reasons, fromDate, toDate, page, progressListener, progressRequestListener);
return call;

}

/**
* Get Returns
* Get all returns created by the merchant. This call is supposed to be used by channels. Merchants should use the &#39;GET /v2/returns/merchant&#39; call.
* @param createdSince (optional)
* @param createdSince Deprecated, please use FromDate instead. (optional)
* @param statuses Return status(es) to filter on (optional)
* @param reasons Return reason(s) to filter on (optional)
* @param fromDate Filter on the creation date, starting from this date. This date is inclusive. (optional)
* @param toDate Filter on the creation date, until this date. This date is exclusive. (optional)
* @param page The page to filter on. Starts at 1. (optional)
* @return CollectionOfChannelReturnResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public CollectionOfChannelReturnResponse returnGetDeclaredByMerchant(OffsetDateTime createdSince) throws ApiException {
ApiResponse<CollectionOfChannelReturnResponse> resp = returnGetDeclaredByMerchantWithHttpInfo(createdSince);
public CollectionOfChannelReturnResponse returnGetDeclaredByMerchant(OffsetDateTime createdSince, List<String> statuses, List<String> reasons, OffsetDateTime fromDate, OffsetDateTime toDate, Integer page) throws ApiException {
ApiResponse<CollectionOfChannelReturnResponse> resp = returnGetDeclaredByMerchantWithHttpInfo(createdSince, statuses, reasons, fromDate, toDate, page);
return resp.getData();
}

/**
* Get Returns
* Get all returns created by the merchant. This call is supposed to be used by channels. Merchants should use the &#39;GET /v2/returns/merchant&#39; call.
* @param createdSince (optional)
* @param createdSince Deprecated, please use FromDate instead. (optional)
* @param statuses Return status(es) to filter on (optional)
* @param reasons Return reason(s) to filter on (optional)
* @param fromDate Filter on the creation date, starting from this date. This date is inclusive. (optional)
* @param toDate Filter on the creation date, until this date. This date is exclusive. (optional)
* @param page The page to filter on. Starts at 1. (optional)
* @return ApiResponse&lt;CollectionOfChannelReturnResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<CollectionOfChannelReturnResponse> returnGetDeclaredByMerchantWithHttpInfo(OffsetDateTime createdSince) throws ApiException {
com.squareup.okhttp.Call call = returnGetDeclaredByMerchantValidateBeforeCall(createdSince, null, null);
public ApiResponse<CollectionOfChannelReturnResponse> returnGetDeclaredByMerchantWithHttpInfo(OffsetDateTime createdSince, List<String> statuses, List<String> reasons, OffsetDateTime fromDate, OffsetDateTime toDate, Integer page) throws ApiException {
com.squareup.okhttp.Call call = returnGetDeclaredByMerchantValidateBeforeCall(createdSince, statuses, reasons, fromDate, toDate, page, null, null);
Type localVarReturnType = new TypeToken<CollectionOfChannelReturnResponse>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}

/**
* Get Returns (asynchronously)
* Get all returns created by the merchant. This call is supposed to be used by channels. Merchants should use the &#39;GET /v2/returns/merchant&#39; call.
* @param createdSince (optional)
* @param createdSince Deprecated, please use FromDate instead. (optional)
* @param statuses Return status(es) to filter on (optional)
* @param reasons Return reason(s) to filter on (optional)
* @param fromDate Filter on the creation date, starting from this date. This date is inclusive. (optional)
* @param toDate Filter on the creation date, until this date. This date is exclusive. (optional)
* @param page The page to filter on. Starts at 1. (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 returnGetDeclaredByMerchantAsync(OffsetDateTime createdSince, final ApiCallback<CollectionOfChannelReturnResponse> callback) throws ApiException {
public com.squareup.okhttp.Call returnGetDeclaredByMerchantAsync(OffsetDateTime createdSince, List<String> statuses, List<String> reasons, OffsetDateTime fromDate, OffsetDateTime toDate, Integer page, final ApiCallback<CollectionOfChannelReturnResponse> callback) throws ApiException {

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

com.squareup.okhttp.Call call = returnGetDeclaredByMerchantValidateBeforeCall(createdSince, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = returnGetDeclaredByMerchantValidateBeforeCall(createdSince, statuses, reasons, fromDate, toDate, page, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<CollectionOfChannelReturnResponse>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
Expand Down

0 comments on commit fcca5cb

Please sign in to comment.