Skip to content

Commit a332069

Browse files
committed
Minor fixes
1 parent 7ca5d78 commit a332069

File tree

648 files changed

+696
-696
lines changed

Some content is hidden

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

648 files changed

+696
-696
lines changed

docs/DecisionManagerApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**addNegative**](DecisionManagerApi.md#addNegative) | **POST** /risk/v1/lists/{type}/entries | List Management
88
[**createDecisionManagerCase**](DecisionManagerApi.md#createDecisionManagerCase) | **POST** /risk/v1/decisions | Create Decision Manager Case
9-
[**fraudUdate**](DecisionManagerApi.md#fraudUdate) | **POST** /risk/v1/decisions/{id}/marking | Fraud Marking
9+
[**fraudUpdate**](DecisionManagerApi.md#fraudUpdate) | **POST** /risk/v1/decisions/{id}/marking | Fraud Marking
1010

1111

1212
<a name="addNegative"></a>
@@ -101,9 +101,9 @@ No authorization required
101101
- **Content-Type**: application/json;charset=utf-8
102102
- **Accept**: application/hal+json;charset=utf-8
103103

104-
<a name="fraudUdate"></a>
105-
# **fraudUdate**
106-
> RiskV1UpdatePost201Response fraudUdate(id, fraudMarkingActionRequest)
104+
<a name="fraudUpdate"></a>
105+
# **fraudUpdate**
106+
> RiskV1UpdatePost201Response fraudUpdate(id, fraudMarkingActionRequest)
107107
108108
Fraud Marking
109109

@@ -120,10 +120,10 @@ DecisionManagerApi apiInstance = new DecisionManagerApi();
120120
String id = "id_example"; // String | Request ID of the transaction that you want to mark as suspect or remove from history.
121121
FraudMarkingActionRequest fraudMarkingActionRequest = new FraudMarkingActionRequest(); // FraudMarkingActionRequest |
122122
try {
123-
RiskV1UpdatePost201Response result = apiInstance.fraudUdate(id, fraudMarkingActionRequest);
123+
RiskV1UpdatePost201Response result = apiInstance.fraudUpdate(id, fraudMarkingActionRequest);
124124
System.out.println(result);
125125
} catch (ApiException e) {
126-
System.err.println("Exception when calling DecisionManagerApi#fraudUdate");
126+
System.err.println("Exception when calling DecisionManagerApi#fraudUpdate");
127127
e.printStackTrace();
128128
}
129129
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public class {{classname}} {
104104
{{localVariablePrefix}}localVarHeaderParams.put("Content-Type", {{localVariablePrefix}}localVarContentType);
105105

106106
if(progressListener != null) {
107-
apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() {
107+
apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
108108
@Override
109109
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
110110
okhttp3.Response originalResponse = chain.proceed(chain.request());

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
<dependency>
265265
<groupId>com.cybersource</groupId>
266266
<artifactId>AuthenticationSdk</artifactId>
267-
<version>0.0.8</version>
267+
<version>0.0.9-SNAPSHOT</version>
268268
</dependency>
269269
<dependency>
270270
<groupId>com.fasterxml.jackson.core</groupId>

src/main/java/Api/AuthenticationExemptionsApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public okhttp3.Call authenticationExemptionsCall(AuthenticationExemptionsRequest
9191
localVarHeaderParams.put("Content-Type", localVarContentType);
9292

9393
if(progressListener != null) {
94-
apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() {
94+
apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
9595
@Override
9696
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
9797
okhttp3.Response originalResponse = chain.proceed(chain.request());

src/main/java/Api/CaptureApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public okhttp3.Call capturePaymentCall(CapturePaymentRequest capturePaymentReque
9393
localVarHeaderParams.put("Content-Type", localVarContentType);
9494

9595
if(progressListener != null) {
96-
apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() {
96+
apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
9797
@Override
9898
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
9999
okhttp3.Response originalResponse = chain.proceed(chain.request());

src/main/java/Api/ConversionDetailsApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public okhttp3.Call getConversionDetailCall(DateTime startTime, DateTime endTime
9898
localVarHeaderParams.put("Content-Type", localVarContentType);
9999

100100
if(progressListener != null) {
101-
apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() {
101+
apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
102102
@Override
103103
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
104104
okhttp3.Response originalResponse = chain.proceed(chain.request());

src/main/java/Api/CreditApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public okhttp3.Call createCreditCall(CreateCreditRequest createCreditRequest, fi
9191
localVarHeaderParams.put("Content-Type", localVarContentType);
9292

9393
if(progressListener != null) {
94-
apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() {
94+
apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
9595
@Override
9696
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
9797
okhttp3.Response originalResponse = chain.proceed(chain.request());

src/main/java/Api/DecisionManagerApi.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public okhttp3.Call addNegativeCall(String type, AddNegativeListRequest addNegat
9696
localVarHeaderParams.put("Content-Type", localVarContentType);
9797

9898
if(progressListener != null) {
99-
apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() {
99+
apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
100100
@Override
101101
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
102102
okhttp3.Response originalResponse = chain.proceed(chain.request());
@@ -229,7 +229,7 @@ public okhttp3.Call createDecisionManagerCaseCall(CreateDecisionManagerCaseReque
229229
localVarHeaderParams.put("Content-Type", localVarContentType);
230230

231231
if(progressListener != null) {
232-
apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() {
232+
apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
233233
@Override
234234
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
235235
okhttp3.Response originalResponse = chain.proceed(chain.request());
@@ -322,15 +322,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
322322
return call;
323323
}
324324
/**
325-
* Build call for FraudUpdate
325+
* Build call for fraudUpdate
326326
* @param id Request ID of the transaction that you want to mark as suspect or remove from history. (required)
327327
* @param fraudMarkingActionRequest (required)
328328
* @param progressListener Progress listener
329329
* @param progressRequestListener Progress request listener
330330
* @return Call to execute
331331
* @throws ApiException If fail to serialize the request body object
332332
*/
333-
public okhttp3.Call FraudUpdateCall(String id, FraudMarkingActionRequest fraudMarkingActionRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
333+
public okhttp3.Call fraudUpdateCall(String id, FraudMarkingActionRequest fraudMarkingActionRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
334334
Object localVarPostBody = fraudMarkingActionRequest;
335335

336336
// create path and map variables
@@ -356,7 +356,7 @@ public okhttp3.Call FraudUpdateCall(String id, FraudMarkingActionRequest fraudMa
356356
localVarHeaderParams.put("Content-Type", localVarContentType);
357357

358358
if(progressListener != null) {
359-
apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() {
359+
apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
360360
@Override
361361
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
362362
okhttp3.Response originalResponse = chain.proceed(chain.request());
@@ -372,20 +372,20 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
372372
}
373373

374374
@SuppressWarnings("rawtypes")
375-
private okhttp3.Call FraudUpdateValidateBeforeCall(String id, FraudMarkingActionRequest fraudMarkingActionRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
375+
private okhttp3.Call fraudUpdateValidateBeforeCall(String id, FraudMarkingActionRequest fraudMarkingActionRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
376376

377377
// verify the required parameter 'id' is set
378378
if (id == null) {
379-
throw new ApiException("Missing the required parameter 'id' when calling FraudUpdate(Async)");
379+
throw new ApiException("Missing the required parameter 'id' when calling fraudUpdate(Async)");
380380
}
381381

382382
// verify the required parameter 'fraudMarkingActionRequest' is set
383383
if (fraudMarkingActionRequest == null) {
384-
throw new ApiException("Missing the required parameter 'fraudMarkingActionRequest' when calling FraudUpdate(Async)");
384+
throw new ApiException("Missing the required parameter 'fraudMarkingActionRequest' when calling fraudUpdate(Async)");
385385
}
386386

387387

388-
okhttp3.Call call = FraudUpdateCall(id, fraudMarkingActionRequest, progressListener, progressRequestListener);
388+
okhttp3.Call call = fraudUpdateCall(id, fraudMarkingActionRequest, progressListener, progressRequestListener);
389389
return call;
390390

391391

@@ -402,8 +402,8 @@ private okhttp3.Call FraudUpdateValidateBeforeCall(String id, FraudMarkingAction
402402
* @return RiskV1UpdatePost201Response
403403
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
404404
*/
405-
public RiskV1UpdatePost201Response FraudUpdate(String id, FraudMarkingActionRequest fraudMarkingActionRequest) throws ApiException {
406-
ApiResponse<RiskV1UpdatePost201Response> resp = FraudUpdateWithHttpInfo(id, fraudMarkingActionRequest);
405+
public RiskV1UpdatePost201Response fraudUpdate(String id, FraudMarkingActionRequest fraudMarkingActionRequest) throws ApiException {
406+
ApiResponse<RiskV1UpdatePost201Response> resp = fraudUpdateWithHttpInfo(id, fraudMarkingActionRequest);
407407
return resp.getData();
408408
}
409409

@@ -415,8 +415,8 @@ public RiskV1UpdatePost201Response FraudUpdate(String id, FraudMarkingActionRequ
415415
* @return ApiResponse&lt;RiskV1UpdatePost201Response&gt;
416416
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
417417
*/
418-
public ApiResponse<RiskV1UpdatePost201Response> FraudUpdateWithHttpInfo(String id, FraudMarkingActionRequest fraudMarkingActionRequest) throws ApiException {
419-
okhttp3.Call call = FraudUpdateValidateBeforeCall(id, fraudMarkingActionRequest, null, null);
418+
public ApiResponse<RiskV1UpdatePost201Response> fraudUpdateWithHttpInfo(String id, FraudMarkingActionRequest fraudMarkingActionRequest) throws ApiException {
419+
okhttp3.Call call = fraudUpdateValidateBeforeCall(id, fraudMarkingActionRequest, null, null);
420420
Type localVarReturnType = new TypeToken<RiskV1UpdatePost201Response>(){}.getType();
421421
return apiClient.execute(call, localVarReturnType);
422422
}
@@ -430,7 +430,7 @@ public ApiResponse<RiskV1UpdatePost201Response> FraudUpdateWithHttpInfo(String i
430430
* @return The request call
431431
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
432432
*/
433-
public okhttp3.Call FraudUpdateAsync(String id, FraudMarkingActionRequest fraudMarkingActionRequest, final ApiCallback<RiskV1UpdatePost201Response> callback) throws ApiException {
433+
public okhttp3.Call fraudUpdateAsync(String id, FraudMarkingActionRequest fraudMarkingActionRequest, final ApiCallback<RiskV1UpdatePost201Response> callback) throws ApiException {
434434

435435
ProgressResponseBody.ProgressListener progressListener = null;
436436
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -451,7 +451,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
451451
};
452452
}
453453

454-
okhttp3.Call call = FraudUpdateValidateBeforeCall(id, fraudMarkingActionRequest, progressListener, progressRequestListener);
454+
okhttp3.Call call = fraudUpdateValidateBeforeCall(id, fraudMarkingActionRequest, progressListener, progressRequestListener);
455455
Type localVarReturnType = new TypeToken<RiskV1UpdatePost201Response>(){}.getType();
456456
apiClient.executeAsync(call, localVarReturnType, callback);
457457
return call;

src/main/java/Api/DownloadDTDApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public okhttp3.Call getDTDV2Call(String reportDefinitionNameVersion, final Progr
8888
localVarHeaderParams.put("Content-Type", localVarContentType);
8989

9090
if(progressListener != null) {
91-
apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() {
91+
apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
9292
@Override
9393
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
9494
okhttp3.Response originalResponse = chain.proceed(chain.request());

src/main/java/Api/DownloadXSDApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public okhttp3.Call getXSDV2Call(String reportDefinitionNameVersion, final Progr
8888
localVarHeaderParams.put("Content-Type", localVarContentType);
8989

9090
if(progressListener != null) {
91-
apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() {
91+
apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
9292
@Override
9393
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
9494
okhttp3.Response originalResponse = chain.proceed(chain.request());

0 commit comments

Comments
 (0)