Skip to content

Commit ab60650

Browse files
author
Shiva Shankaran, Akshaya
committed
Response Model Changes
1 parent f524732 commit ab60650

File tree

342 files changed

+6497
-6581
lines changed

Some content is hidden

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

342 files changed

+6497
-6581
lines changed

src/main/java/Api/CaptureApi.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929

3030

3131
import Model.CapturePaymentRequest;
32-
import Model.InlineResponse2012;
33-
import Model.InlineResponse4002;
34-
import Model.InlineResponse502;
32+
import Model.PtsV2PaymentsCapturesPost201Response;
33+
import Model.PtsV2PaymentsCapturesPost400Response;
34+
import Model.PtsV2PaymentsPost502Response;
3535

3636
import java.lang.reflect.Type;
3737
import java.util.ArrayList;
@@ -138,11 +138,11 @@ private com.squareup.okhttp.Call capturePaymentValidateBeforeCall(CapturePayment
138138
* @param capturePaymentRequest (required)
139139
* @param merchantConfig (merchant details)
140140
* @param id The payment ID returned from a previous payment request. This ID links the capture to the payment. (required)
141-
* @return InlineResponse2012
141+
* @return PtsV2PaymentsCapturesPost201Response
142142
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
143143
*/
144-
public InlineResponse2012 capturePayment(CapturePaymentRequest capturePaymentRequest,MerchantConfig merchantConfig, String id) throws ApiException {
145-
ApiResponse<InlineResponse2012> resp = capturePaymentWithHttpInfo(capturePaymentRequest,merchantConfig, id);
144+
public PtsV2PaymentsCapturesPost201Response capturePayment(CapturePaymentRequest capturePaymentRequest,MerchantConfig merchantConfig, String id) throws ApiException {
145+
ApiResponse<PtsV2PaymentsCapturesPost201Response> resp = capturePaymentWithHttpInfo(capturePaymentRequest,merchantConfig, id);
146146
return resp.getData();
147147
}
148148

@@ -152,12 +152,12 @@ public InlineResponse2012 capturePayment(CapturePaymentRequest capturePaymentReq
152152
* @param capturePaymentRequest (required)
153153
* @param merchantConfig (merchant details)
154154
* @param id The payment ID returned from a previous payment request. This ID links the capture to the payment. (required)
155-
* @return ApiResponse&lt;InlineResponse2012&gt;
155+
* @return ApiResponse&lt;PtsV2PaymentsCapturesPost201Response&gt;
156156
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
157157
*/
158-
public ApiResponse<InlineResponse2012> capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest,MerchantConfig merchantConfig, String id) throws ApiException {
158+
public ApiResponse<PtsV2PaymentsCapturesPost201Response> capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest,MerchantConfig merchantConfig, String id) throws ApiException {
159159
com.squareup.okhttp.Call call = capturePaymentValidateBeforeCall(capturePaymentRequest,merchantConfig, id, null, null);
160-
Type localVarReturnType = new TypeToken<InlineResponse2012>(){}.getType();
160+
Type localVarReturnType = new TypeToken<PtsV2PaymentsCapturesPost201Response>(){}.getType();
161161
return apiClient.execute(call, localVarReturnType);
162162
}
163163

@@ -171,7 +171,7 @@ public ApiResponse<InlineResponse2012> capturePaymentWithHttpInfo(CapturePayment
171171
* @return The request call
172172
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
173173
*/
174-
public com.squareup.okhttp.Call capturePaymentAsync(CapturePaymentRequest capturePaymentRequest,MerchantConfig merchantConfig, String id, final ApiCallback<InlineResponse2012> callback) throws ApiException {
174+
public com.squareup.okhttp.Call capturePaymentAsync(CapturePaymentRequest capturePaymentRequest,MerchantConfig merchantConfig, String id, final ApiCallback<PtsV2PaymentsCapturesPost201Response> callback) throws ApiException {
175175

176176
ProgressResponseBody.ProgressListener progressListener = null;
177177
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -193,7 +193,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
193193
}
194194

195195
com.squareup.okhttp.Call call = capturePaymentValidateBeforeCall(capturePaymentRequest,merchantConfig, id, progressListener, progressRequestListener);
196-
Type localVarReturnType = new TypeToken<InlineResponse2012>(){}.getType();
196+
Type localVarReturnType = new TypeToken<PtsV2PaymentsCapturesPost201Response>(){}.getType();
197197
apiClient.executeAsync(call, localVarReturnType, callback);
198198
return call;
199199
}

src/main/java/Api/CreditApi.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929

3030

3131
import Model.CreateCreditRequest;
32-
import Model.InlineResponse2014;
33-
import Model.InlineResponse4003;
34-
import Model.InlineResponse502;
32+
import Model.PtsV2CreditsPost201Response;
33+
import Model.PtsV2PaymentsPost502Response;
34+
import Model.PtsV2PaymentsRefundPost400Response;
3535

3636
import java.lang.reflect.Type;
3737
import java.util.ArrayList;
@@ -129,12 +129,12 @@ private com.squareup.okhttp.Call createCreditValidateBeforeCall(CreateCreditRequ
129129
* Process a Credit
130130
* POST to the credit resource to credit funds to a specified credit card.
131131
* @param createCreditRequest (required)
132-
* @param merchantConfig (merchant details)
133-
* @return InlineResponse2014
132+
*@param merchantConfig (merchant details)
133+
* @return PtsV2CreditsPost201Response
134134
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
135135
*/
136-
public InlineResponse2014 createCredit(CreateCreditRequest createCreditRequest,MerchantConfig merchantConfig) throws ApiException {
137-
ApiResponse<InlineResponse2014> resp = createCreditWithHttpInfo(createCreditRequest,merchantConfig);
136+
public PtsV2CreditsPost201Response createCredit(CreateCreditRequest createCreditRequest,MerchantConfig merchantConfig) throws ApiException {
137+
ApiResponse<PtsV2CreditsPost201Response> resp = createCreditWithHttpInfo(createCreditRequest,merchantConfig);
138138
return resp.getData();
139139
}
140140

@@ -143,12 +143,12 @@ public InlineResponse2014 createCredit(CreateCreditRequest createCreditRequest,M
143143
* POST to the credit resource to credit funds to a specified credit card.
144144
* @param createCreditRequest (required)
145145
* @param merchantConfig (merchant details)
146-
* @return ApiResponse&lt;InlineResponse2014&gt;
146+
* @return ApiResponse&lt;PtsV2CreditsPost201Response&gt;
147147
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
148148
*/
149-
public ApiResponse<InlineResponse2014> createCreditWithHttpInfo(CreateCreditRequest createCreditRequest,MerchantConfig merchantConfig) throws ApiException {
149+
public ApiResponse<PtsV2CreditsPost201Response> createCreditWithHttpInfo(CreateCreditRequest createCreditRequest,MerchantConfig merchantConfig) throws ApiException {
150150
com.squareup.okhttp.Call call = createCreditValidateBeforeCall(createCreditRequest,merchantConfig, null, null);
151-
Type localVarReturnType = new TypeToken<InlineResponse2014>(){}.getType();
151+
Type localVarReturnType = new TypeToken<PtsV2CreditsPost201Response>(){}.getType();
152152
return apiClient.execute(call, localVarReturnType);
153153
}
154154

@@ -161,7 +161,7 @@ public ApiResponse<InlineResponse2014> createCreditWithHttpInfo(CreateCreditRequ
161161
* @return The request call
162162
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
163163
*/
164-
public com.squareup.okhttp.Call createCreditAsync(CreateCreditRequest createCreditRequest,MerchantConfig merchantConfig, final ApiCallback<InlineResponse2014> callback) throws ApiException {
164+
public com.squareup.okhttp.Call createCreditAsync(CreateCreditRequest createCreditRequest,MerchantConfig merchantConfig, final ApiCallback<PtsV2CreditsPost201Response> callback) throws ApiException {
165165

166166
ProgressResponseBody.ProgressListener progressListener = null;
167167
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -183,7 +183,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
183183
}
184184

185185
com.squareup.okhttp.Call call = createCreditValidateBeforeCall(createCreditRequest,merchantConfig, progressListener, progressRequestListener);
186-
Type localVarReturnType = new TypeToken<InlineResponse2014>(){}.getType();
186+
Type localVarReturnType = new TypeToken<PtsV2CreditsPost201Response>(){}.getType();
187187
apiClient.executeAsync(call, localVarReturnType, callback);
188188
return call;
189189
}

src/main/java/Api/FlexTokenApi.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import java.io.IOException;
2929

3030

31-
import Model.InlineResponse2001;
31+
import Model.FlexV1TokensPost200Response;
3232
import Model.InlineResponseDefault;
3333
import Model.TokenizeRequest;
3434

@@ -124,11 +124,11 @@ private com.squareup.okhttp.Call tokenizeValidateBeforeCall(TokenizeRequest toke
124124
* Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser.
125125
* @param tokenizeRequest (optional)
126126
* @param merchantConfig (merchant details)
127-
* @return InlineResponse2001
127+
* @return FlexV1TokensPost200Response
128128
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
129129
*/
130-
public InlineResponse2001 tokenize(TokenizeRequest tokenizeRequest,MerchantConfig merchantConfig) throws ApiException {
131-
ApiResponse<InlineResponse2001> resp = tokenizeWithHttpInfo(tokenizeRequest,merchantConfig);
130+
public FlexV1TokensPost200Response tokenize(TokenizeRequest tokenizeRequest,MerchantConfig merchantConfig) throws ApiException {
131+
ApiResponse<FlexV1TokensPost200Response> resp = tokenizeWithHttpInfo(tokenizeRequest,merchantConfig);
132132
return resp.getData();
133133
}
134134

@@ -137,12 +137,12 @@ public InlineResponse2001 tokenize(TokenizeRequest tokenizeRequest,MerchantConfi
137137
* Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser.
138138
* @param tokenizeRequest (optional)
139139
* @param merchantConfig (merchant details)
140-
* @return ApiResponse&lt;InlineResponse2001&gt;
140+
* @return ApiResponse&lt;FlexV1TokensPost200Response&gt;
141141
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
142142
*/
143-
public ApiResponse<InlineResponse2001> tokenizeWithHttpInfo(TokenizeRequest tokenizeRequest,MerchantConfig merchantConfig) throws ApiException {
143+
public ApiResponse<FlexV1TokensPost200Response> tokenizeWithHttpInfo(TokenizeRequest tokenizeRequest,MerchantConfig merchantConfig) throws ApiException {
144144
com.squareup.okhttp.Call call = tokenizeValidateBeforeCall(tokenizeRequest,merchantConfig, null, null);
145-
Type localVarReturnType = new TypeToken<InlineResponse2001>(){}.getType();
145+
Type localVarReturnType = new TypeToken<FlexV1TokensPost200Response>(){}.getType();
146146
return apiClient.execute(call, localVarReturnType);
147147
}
148148

@@ -155,7 +155,7 @@ public ApiResponse<InlineResponse2001> tokenizeWithHttpInfo(TokenizeRequest toke
155155
* @return The request call
156156
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
157157
*/
158-
public com.squareup.okhttp.Call tokenizeAsync(TokenizeRequest tokenizeRequest,MerchantConfig merchantConfig, final ApiCallback<InlineResponse2001> callback) throws ApiException {
158+
public com.squareup.okhttp.Call tokenizeAsync(TokenizeRequest tokenizeRequest,MerchantConfig merchantConfig, final ApiCallback<FlexV1TokensPost200Response> callback) throws ApiException {
159159

160160
ProgressResponseBody.ProgressListener progressListener = null;
161161
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -177,7 +177,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
177177
}
178178

179179
com.squareup.okhttp.Call call = tokenizeValidateBeforeCall(tokenizeRequest,merchantConfig, progressListener, progressRequestListener);
180-
Type localVarReturnType = new TypeToken<InlineResponse2001>(){}.getType();
180+
Type localVarReturnType = new TypeToken<FlexV1TokensPost200Response>(){}.getType();
181181
apiClient.executeAsync(call, localVarReturnType, callback);
182182
return call;
183183
}

0 commit comments

Comments
 (0)