Skip to content

Commit 50c99c1

Browse files
committed
+ Reverting ReportSubscriptionsApi, ReportsApi & TransactionBatchApi
1 parent 616180c commit 50c99c1

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

src/main/java/Api/ReportSubscriptionsApi.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public com.squareup.okhttp.Call createSubscriptionCall(RequestBody requestBody,
6565
Object localVarPostBody = requestBody;
6666

6767
// create path and map variables
68-
String localVarPath = "/reporting/v3/report-subscriptions";
68+
String localVarPath = "/reporting/v3/report-subscriptions";
69+
/*.replaceAll("\\{" + "reportName" + "\\}", apiClient.escapeString(reportName.toString()));*/
6970

7071
List<Pair> localVarQueryParams = new ArrayList<Pair>();
7172

@@ -488,11 +489,11 @@ private com.squareup.okhttp.Call getSubscriptionValidateBeforeCall(String report
488489
* Retrieve subscription for a report name by organization
489490
*
490491
* @param reportName Name of the Report to Retrieve (required)
491-
* @return ReportingV3ReportSubscriptionsGet200ResponseSubscriptions
492+
* @return ReportingV3ReportSubscriptionsGet200Response
492493
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
493494
*/
494-
public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions getSubscription(String reportName) throws ApiException {
495-
ApiResponse<ReportingV3ReportSubscriptionsGet200ResponseSubscriptions> resp = getSubscriptionWithHttpInfo(reportName);
495+
public ReportingV3ReportSubscriptionsGet200Response getSubscription(String reportName) throws ApiException {
496+
ApiResponse<ReportingV3ReportSubscriptionsGet200Response> resp = getSubscriptionWithHttpInfo(reportName);
496497
return resp.getData();
497498
}
498499

@@ -503,9 +504,9 @@ public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions getSubscription
503504
* @return ApiResponse&lt;ReportingV3ReportSubscriptionsGet200Response&gt;
504505
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
505506
*/
506-
public ApiResponse<ReportingV3ReportSubscriptionsGet200ResponseSubscriptions> getSubscriptionWithHttpInfo(String reportName) throws ApiException {
507+
public ApiResponse<ReportingV3ReportSubscriptionsGet200Response> getSubscriptionWithHttpInfo(String reportName) throws ApiException {
507508
com.squareup.okhttp.Call call = getSubscriptionValidateBeforeCall(reportName, null, null);
508-
Type localVarReturnType = new TypeToken<ReportingV3ReportSubscriptionsGet200ResponseSubscriptions>(){}.getType();
509+
Type localVarReturnType = new TypeToken<ReportingV3ReportSubscriptionsGet200Response>(){}.getType();
509510
return apiClient.execute(call, localVarReturnType);
510511
}
511512

src/main/java/Api/ReportsApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ private com.squareup.okhttp.Call createReportValidateBeforeCall(RequestBody1 req
128128
* @return ApiResponse&lt;ReportingV3ReportsIdGet200Response&gt;
129129
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
130130
*/
131-
public void createReport(RequestBody1 requestBody) throws ApiException {
132-
createReportWithHttpInfo(requestBody);
131+
public ApiResponse<ReportingV3ReportsIdGet200Response> createReport(RequestBody1 requestBody) throws ApiException {
132+
return createReportWithHttpInfo(requestBody);
133133
}
134134

135135
/**
@@ -139,7 +139,7 @@ public void createReport(RequestBody1 requestBody) throws ApiException {
139139
* @return ApiResponse&lt;ReportingV3ReportsIdGet200Response&gt;
140140
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
141141
*/
142-
public ApiResponse<Void> createReportWithHttpInfo(RequestBody1 requestBody) throws ApiException {
142+
public ApiResponse<ReportingV3ReportsIdGet200Response> createReportWithHttpInfo(RequestBody1 requestBody) throws ApiException {
143143
com.squareup.okhttp.Call call = createReportValidateBeforeCall(requestBody, null, null);
144144
return apiClient.execute(call);
145145
}
@@ -329,7 +329,7 @@ public com.squareup.okhttp.Call searchReportsCall(DateTime startTime, DateTime e
329329
Object localVarPostBody = null;
330330

331331
// create path and map variables
332-
String localVarPath = "/reporting/v3/reports";
332+
String localVarPath = "/reporting/v3/reports?startTime="+startTime.toString()+"&endTime="+endTime.toString()+"&timeQueryType="+timeQueryType+"&organizationId="+organizationId;";
333333
334334
List<Pair> localVarQueryParams = new ArrayList<Pair>();
335335

src/main/java/Api/TransactionBatchApi.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import Invokers.ProgressRequestBody;
3232
import Invokers.ProgressResponseBody;
3333
import Model.PtsV1TransactionBatchesGet200Response;
34-
import Model.PtsV1TransactionBatchesIdGet200Response;
3534

3635
public class TransactionBatchApi {
3736
private ApiClient apiClient;
@@ -126,9 +125,8 @@ private com.squareup.okhttp.Call ptsV1TransactionBatchesIdGetValidateBeforeCall(
126125
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
127126
* @return ApiResponse&lt;Void&gt;
128127
*/
129-
public PtsV1TransactionBatchesIdGet200Response ptsV1TransactionBatchesIdGet(String id) throws ApiException {
130-
ApiResponse<PtsV1TransactionBatchesIdGet200Response> resp = ptsV1TransactionBatchesIdGetWithHttpInfo(id);
131-
return resp.getData();
128+
public ApiResponse<PtsV1TransactionBatchesGet200Response> ptsV1TransactionBatchesIdGet(String id) throws ApiException {
129+
return ptsV1TransactionBatchesIdGetWithHttpInfo(id);
132130
}
133131

134132
/**
@@ -138,9 +136,9 @@ public PtsV1TransactionBatchesIdGet200Response ptsV1TransactionBatchesIdGet(Stri
138136
* @return ApiResponse&lt;Void&gt;
139137
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
140138
*/
141-
public ApiResponse<PtsV1TransactionBatchesIdGet200Response> ptsV1TransactionBatchesIdGetWithHttpInfo(String id) throws ApiException {
139+
public ApiResponse<PtsV1TransactionBatchesGet200Response> ptsV1TransactionBatchesIdGetWithHttpInfo(String id) throws ApiException {
142140
com.squareup.okhttp.Call call = ptsV1TransactionBatchesIdGetValidateBeforeCall(id, null, null);
143-
Type localVarReturnType = new TypeToken<PtsV1TransactionBatchesIdGet200Response>(){}.getType();
141+
Type localVarReturnType = new TypeToken<PtsV1TransactionBatchesGet200Response>(){}.getType();
144142
return apiClient.execute(call, localVarReturnType);
145143
}
146144

0 commit comments

Comments
 (0)