Skip to content

Commit e2006b3

Browse files
committed
adding setComputation in httpInfo in mustache file
1 parent 428af6a commit e2006b3

File tree

1 file changed

+1
-1
lines changed
  • generator/cybersource-java-template/libraries/okhttp-gson

1 file changed

+1
-1
lines changed

generator/cybersource-java-template/libraries/okhttp-gson/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ public class {{classname}} {
200200
*/
201201
public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException {
202202
logger.info("CALL TO METHOD '{{operationId}}' STARTED");
203-
this.apiClient.setComputationStartTime(System.nanoTime());
204203
{{#returnType}}ApiResponse<{{{returnType}}}> {{localVariablePrefix}}resp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
205204
{{#returnType}}
206205
logger.info("CALL TO METHOD '{{operationId}}' ENDED");
@@ -215,6 +214,7 @@ public class {{classname}} {
215214
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
216215
*/
217216
public ApiResponse<{{#vendorExtensions.x-streaming}}InputStream{{/vendorExtensions.x-streaming}}{{^vendorExtensions.x-streaming}}{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}{{/vendorExtensions.x-streaming}}> {{operationId}}WithHttpInfo({{#allParams}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException {
217+
this.apiClient.setComputationStartTime(System.nanoTime());
218218
okhttp3.Call {{localVariablePrefix}}call = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}null, null);
219219
{{#returnType}}Type {{localVariablePrefix}}localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType();
220220
return {{localVariablePrefix}}apiClient.execute({{localVariablePrefix}}call, {{localVariablePrefix}}localVarReturnType);{{/returnType}}{{^returnType}}return {{localVariablePrefix}}apiClient.execute({{localVariablePrefix}}call);{{/returnType}}

0 commit comments

Comments
 (0)