39
39
import java .io .IOException ;
40
40
import java .util .HashMap ;
41
41
import java .util .Map ;
42
+
43
+ /**
44
+ * This class is deprecated and NO LONGER updated
45
+ * @deprecated Use instead PaymentsApi and ModificationsApi in the com.adyen.service.payment package
46
+ *
47
+ */
48
+ @ Deprecated (since = "v37.0.0" , forRemoval = true )
42
49
public class PaymentApi extends Service {
43
50
44
51
public static final String API_VERSION = "68" ;
@@ -49,6 +56,7 @@ public class PaymentApi extends Service {
49
56
* Default constructor in {@link com.adyen.service package}.
50
57
* @param client {@link Client } (required)
51
58
*/
59
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
52
60
public PaymentApi (Client client ) {
53
61
super (client );
54
62
this .baseURL = createBaseURL ("https://pal-test.adyen.com/pal/servlet/Payment/v68" );
@@ -60,6 +68,7 @@ public PaymentApi(Client client) {
60
68
* @param client {@link Client } (required)
61
69
* @param baseURL {@link String } (required)
62
70
*/
71
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
63
72
public PaymentApi (Client client , String baseURL ) {
64
73
super (client );
65
74
this .baseURL = baseURL ;
@@ -72,6 +81,7 @@ public PaymentApi(Client client, String baseURL) {
72
81
* @return {@link ModificationResult }
73
82
* @throws ApiException if fails to make API call
74
83
*/
84
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
75
85
public ModificationResult adjustAuthorisation (AdjustAuthorisationRequest adjustAuthorisationRequest ) throws ApiException , IOException {
76
86
return adjustAuthorisation (adjustAuthorisationRequest , null );
77
87
}
@@ -84,6 +94,7 @@ public ModificationResult adjustAuthorisation(AdjustAuthorisationRequest adjustA
84
94
* @return {@link ModificationResult }
85
95
* @throws ApiException if fails to make API call
86
96
*/
97
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
87
98
public ModificationResult adjustAuthorisation (AdjustAuthorisationRequest adjustAuthorisationRequest , RequestOptions requestOptions ) throws ApiException , IOException {
88
99
89
100
String requestBody = adjustAuthorisationRequest .toJson ();
@@ -99,6 +110,7 @@ public ModificationResult adjustAuthorisation(AdjustAuthorisationRequest adjustA
99
110
* @return {@link PaymentResult }
100
111
* @throws ApiException if fails to make API call
101
112
*/
113
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
102
114
public PaymentResult authorise (PaymentRequest paymentRequest ) throws ApiException , IOException {
103
115
return authorise (paymentRequest , null );
104
116
}
@@ -111,6 +123,7 @@ public PaymentResult authorise(PaymentRequest paymentRequest) throws ApiExceptio
111
123
* @return {@link PaymentResult }
112
124
* @throws ApiException if fails to make API call
113
125
*/
126
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
114
127
public PaymentResult authorise (PaymentRequest paymentRequest , RequestOptions requestOptions ) throws ApiException , IOException {
115
128
116
129
String requestBody = paymentRequest .toJson ();
@@ -126,6 +139,7 @@ public PaymentResult authorise(PaymentRequest paymentRequest, RequestOptions req
126
139
* @return {@link PaymentResult }
127
140
* @throws ApiException if fails to make API call
128
141
*/
142
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
129
143
public PaymentResult authorise3d (PaymentRequest3d paymentRequest3d ) throws ApiException , IOException {
130
144
return authorise3d (paymentRequest3d , null );
131
145
}
@@ -138,6 +152,7 @@ public PaymentResult authorise3d(PaymentRequest3d paymentRequest3d) throws ApiEx
138
152
* @return {@link PaymentResult }
139
153
* @throws ApiException if fails to make API call
140
154
*/
155
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
141
156
public PaymentResult authorise3d (PaymentRequest3d paymentRequest3d , RequestOptions requestOptions ) throws ApiException , IOException {
142
157
143
158
String requestBody = paymentRequest3d .toJson ();
@@ -153,6 +168,7 @@ public PaymentResult authorise3d(PaymentRequest3d paymentRequest3d, RequestOptio
153
168
* @return {@link PaymentResult }
154
169
* @throws ApiException if fails to make API call
155
170
*/
171
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
156
172
public PaymentResult authorise3ds2 (PaymentRequest3ds2 paymentRequest3ds2 ) throws ApiException , IOException {
157
173
return authorise3ds2 (paymentRequest3ds2 , null );
158
174
}
@@ -165,6 +181,7 @@ public PaymentResult authorise3ds2(PaymentRequest3ds2 paymentRequest3ds2) throws
165
181
* @return {@link PaymentResult }
166
182
* @throws ApiException if fails to make API call
167
183
*/
184
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
168
185
public PaymentResult authorise3ds2 (PaymentRequest3ds2 paymentRequest3ds2 , RequestOptions requestOptions ) throws ApiException , IOException {
169
186
170
187
String requestBody = paymentRequest3ds2 .toJson ();
@@ -180,6 +197,7 @@ public PaymentResult authorise3ds2(PaymentRequest3ds2 paymentRequest3ds2, Reques
180
197
* @return {@link ModificationResult }
181
198
* @throws ApiException if fails to make API call
182
199
*/
200
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
183
201
public ModificationResult cancel (CancelRequest cancelRequest ) throws ApiException , IOException {
184
202
return cancel (cancelRequest , null );
185
203
}
@@ -192,6 +210,7 @@ public ModificationResult cancel(CancelRequest cancelRequest) throws ApiExceptio
192
210
* @return {@link ModificationResult }
193
211
* @throws ApiException if fails to make API call
194
212
*/
213
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
195
214
public ModificationResult cancel (CancelRequest cancelRequest , RequestOptions requestOptions ) throws ApiException , IOException {
196
215
197
216
String requestBody = cancelRequest .toJson ();
@@ -207,6 +226,7 @@ public ModificationResult cancel(CancelRequest cancelRequest, RequestOptions req
207
226
* @return {@link ModificationResult }
208
227
* @throws ApiException if fails to make API call
209
228
*/
229
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
210
230
public ModificationResult cancelOrRefund (CancelOrRefundRequest cancelOrRefundRequest ) throws ApiException , IOException {
211
231
return cancelOrRefund (cancelOrRefundRequest , null );
212
232
}
@@ -219,6 +239,7 @@ public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundReq
219
239
* @return {@link ModificationResult }
220
240
* @throws ApiException if fails to make API call
221
241
*/
242
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
222
243
public ModificationResult cancelOrRefund (CancelOrRefundRequest cancelOrRefundRequest , RequestOptions requestOptions ) throws ApiException , IOException {
223
244
224
245
String requestBody = cancelOrRefundRequest .toJson ();
@@ -234,6 +255,7 @@ public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundReq
234
255
* @return {@link ModificationResult }
235
256
* @throws ApiException if fails to make API call
236
257
*/
258
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
237
259
public ModificationResult capture (CaptureRequest captureRequest ) throws ApiException , IOException {
238
260
return capture (captureRequest , null );
239
261
}
@@ -246,6 +268,7 @@ public ModificationResult capture(CaptureRequest captureRequest) throws ApiExcep
246
268
* @return {@link ModificationResult }
247
269
* @throws ApiException if fails to make API call
248
270
*/
271
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
249
272
public ModificationResult capture (CaptureRequest captureRequest , RequestOptions requestOptions ) throws ApiException , IOException {
250
273
251
274
String requestBody = captureRequest .toJson ();
@@ -260,7 +283,7 @@ public ModificationResult capture(CaptureRequest captureRequest, RequestOptions
260
283
* @param donationRequest {@link DonationRequest } (required)
261
284
* @return {@link ModificationResult }
262
285
* @throws ApiException if fails to make API call
263
- * @deprecated
286
+ * @deprecated // Use Checkout donations instead
264
287
*/
265
288
@ Deprecated
266
289
public ModificationResult donate (DonationRequest donationRequest ) throws ApiException , IOException {
@@ -274,7 +297,7 @@ public ModificationResult donate(DonationRequest donationRequest) throws ApiExce
274
297
* @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional)
275
298
* @return {@link ModificationResult }
276
299
* @throws ApiException if fails to make API call
277
- * @deprecated
300
+ * @deprecated // Use Checkout donations instead
278
301
*/
279
302
@ Deprecated
280
303
public ModificationResult donate (DonationRequest donationRequest , RequestOptions requestOptions ) throws ApiException , IOException {
@@ -292,6 +315,7 @@ public ModificationResult donate(DonationRequest donationRequest, RequestOptions
292
315
* @return {@link AuthenticationResultResponse }
293
316
* @throws ApiException if fails to make API call
294
317
*/
318
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
295
319
public AuthenticationResultResponse getAuthenticationResult (AuthenticationResultRequest authenticationResultRequest ) throws ApiException , IOException {
296
320
return getAuthenticationResult (authenticationResultRequest , null );
297
321
}
@@ -304,6 +328,7 @@ public AuthenticationResultResponse getAuthenticationResult(AuthenticationResult
304
328
* @return {@link AuthenticationResultResponse }
305
329
* @throws ApiException if fails to make API call
306
330
*/
331
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
307
332
public AuthenticationResultResponse getAuthenticationResult (AuthenticationResultRequest authenticationResultRequest , RequestOptions requestOptions ) throws ApiException , IOException {
308
333
309
334
String requestBody = authenticationResultRequest .toJson ();
@@ -319,6 +344,7 @@ public AuthenticationResultResponse getAuthenticationResult(AuthenticationResult
319
344
* @return {@link ModificationResult }
320
345
* @throws ApiException if fails to make API call
321
346
*/
347
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
322
348
public ModificationResult refund (RefundRequest refundRequest ) throws ApiException , IOException {
323
349
return refund (refundRequest , null );
324
350
}
@@ -331,6 +357,7 @@ public ModificationResult refund(RefundRequest refundRequest) throws ApiExceptio
331
357
* @return {@link ModificationResult }
332
358
* @throws ApiException if fails to make API call
333
359
*/
360
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
334
361
public ModificationResult refund (RefundRequest refundRequest , RequestOptions requestOptions ) throws ApiException , IOException {
335
362
336
363
String requestBody = refundRequest .toJson ();
@@ -346,6 +373,7 @@ public ModificationResult refund(RefundRequest refundRequest, RequestOptions req
346
373
* @return {@link ThreeDS2ResultResponse }
347
374
* @throws ApiException if fails to make API call
348
375
*/
376
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
349
377
public ThreeDS2ResultResponse retrieve3ds2Result (ThreeDS2ResultRequest threeDS2ResultRequest ) throws ApiException , IOException {
350
378
return retrieve3ds2Result (threeDS2ResultRequest , null );
351
379
}
@@ -358,6 +386,7 @@ public ThreeDS2ResultResponse retrieve3ds2Result(ThreeDS2ResultRequest threeDS2R
358
386
* @return {@link ThreeDS2ResultResponse }
359
387
* @throws ApiException if fails to make API call
360
388
*/
389
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
361
390
public ThreeDS2ResultResponse retrieve3ds2Result (ThreeDS2ResultRequest threeDS2ResultRequest , RequestOptions requestOptions ) throws ApiException , IOException {
362
391
363
392
String requestBody = threeDS2ResultRequest .toJson ();
@@ -373,6 +402,7 @@ public ThreeDS2ResultResponse retrieve3ds2Result(ThreeDS2ResultRequest threeDS2R
373
402
* @return {@link ModificationResult }
374
403
* @throws ApiException if fails to make API call
375
404
*/
405
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
376
406
public ModificationResult technicalCancel (TechnicalCancelRequest technicalCancelRequest ) throws ApiException , IOException {
377
407
return technicalCancel (technicalCancelRequest , null );
378
408
}
@@ -385,6 +415,7 @@ public ModificationResult technicalCancel(TechnicalCancelRequest technicalCancel
385
415
* @return {@link ModificationResult }
386
416
* @throws ApiException if fails to make API call
387
417
*/
418
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
388
419
public ModificationResult technicalCancel (TechnicalCancelRequest technicalCancelRequest , RequestOptions requestOptions ) throws ApiException , IOException {
389
420
390
421
String requestBody = technicalCancelRequest .toJson ();
@@ -400,6 +431,7 @@ public ModificationResult technicalCancel(TechnicalCancelRequest technicalCancel
400
431
* @return {@link ModificationResult }
401
432
* @throws ApiException if fails to make API call
402
433
*/
434
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
403
435
public ModificationResult voidPendingRefund (VoidPendingRefundRequest voidPendingRefundRequest ) throws ApiException , IOException {
404
436
return voidPendingRefund (voidPendingRefundRequest , null );
405
437
}
@@ -412,6 +444,7 @@ public ModificationResult voidPendingRefund(VoidPendingRefundRequest voidPending
412
444
* @return {@link ModificationResult }
413
445
* @throws ApiException if fails to make API call
414
446
*/
447
+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
415
448
public ModificationResult voidPendingRefund (VoidPendingRefundRequest voidPendingRefundRequest , RequestOptions requestOptions ) throws ApiException , IOException {
416
449
417
450
String requestBody = voidPendingRefundRequest .toJson ();
0 commit comments