3939import java .io .IOException ;
4040import java .util .HashMap ;
4141import 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 )
4249public class PaymentApi extends Service {
4350
4451 public static final String API_VERSION = "68" ;
@@ -49,6 +56,7 @@ public class PaymentApi extends Service {
4956 * Default constructor in {@link com.adyen.service package}.
5057 * @param client {@link Client } (required)
5158 */
59+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
5260 public PaymentApi (Client client ) {
5361 super (client );
5462 this .baseURL = createBaseURL ("https://pal-test.adyen.com/pal/servlet/Payment/v68" );
@@ -60,6 +68,7 @@ public PaymentApi(Client client) {
6068 * @param client {@link Client } (required)
6169 * @param baseURL {@link String } (required)
6270 */
71+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
6372 public PaymentApi (Client client , String baseURL ) {
6473 super (client );
6574 this .baseURL = baseURL ;
@@ -72,6 +81,7 @@ public PaymentApi(Client client, String baseURL) {
7281 * @return {@link ModificationResult }
7382 * @throws ApiException if fails to make API call
7483 */
84+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
7585 public ModificationResult adjustAuthorisation (AdjustAuthorisationRequest adjustAuthorisationRequest ) throws ApiException , IOException {
7686 return adjustAuthorisation (adjustAuthorisationRequest , null );
7787 }
@@ -84,6 +94,7 @@ public ModificationResult adjustAuthorisation(AdjustAuthorisationRequest adjustA
8494 * @return {@link ModificationResult }
8595 * @throws ApiException if fails to make API call
8696 */
97+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
8798 public ModificationResult adjustAuthorisation (AdjustAuthorisationRequest adjustAuthorisationRequest , RequestOptions requestOptions ) throws ApiException , IOException {
8899
89100 String requestBody = adjustAuthorisationRequest .toJson ();
@@ -99,6 +110,7 @@ public ModificationResult adjustAuthorisation(AdjustAuthorisationRequest adjustA
99110 * @return {@link PaymentResult }
100111 * @throws ApiException if fails to make API call
101112 */
113+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
102114 public PaymentResult authorise (PaymentRequest paymentRequest ) throws ApiException , IOException {
103115 return authorise (paymentRequest , null );
104116 }
@@ -111,6 +123,7 @@ public PaymentResult authorise(PaymentRequest paymentRequest) throws ApiExceptio
111123 * @return {@link PaymentResult }
112124 * @throws ApiException if fails to make API call
113125 */
126+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
114127 public PaymentResult authorise (PaymentRequest paymentRequest , RequestOptions requestOptions ) throws ApiException , IOException {
115128
116129 String requestBody = paymentRequest .toJson ();
@@ -126,6 +139,7 @@ public PaymentResult authorise(PaymentRequest paymentRequest, RequestOptions req
126139 * @return {@link PaymentResult }
127140 * @throws ApiException if fails to make API call
128141 */
142+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
129143 public PaymentResult authorise3d (PaymentRequest3d paymentRequest3d ) throws ApiException , IOException {
130144 return authorise3d (paymentRequest3d , null );
131145 }
@@ -138,6 +152,7 @@ public PaymentResult authorise3d(PaymentRequest3d paymentRequest3d) throws ApiEx
138152 * @return {@link PaymentResult }
139153 * @throws ApiException if fails to make API call
140154 */
155+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
141156 public PaymentResult authorise3d (PaymentRequest3d paymentRequest3d , RequestOptions requestOptions ) throws ApiException , IOException {
142157
143158 String requestBody = paymentRequest3d .toJson ();
@@ -153,6 +168,7 @@ public PaymentResult authorise3d(PaymentRequest3d paymentRequest3d, RequestOptio
153168 * @return {@link PaymentResult }
154169 * @throws ApiException if fails to make API call
155170 */
171+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
156172 public PaymentResult authorise3ds2 (PaymentRequest3ds2 paymentRequest3ds2 ) throws ApiException , IOException {
157173 return authorise3ds2 (paymentRequest3ds2 , null );
158174 }
@@ -165,6 +181,7 @@ public PaymentResult authorise3ds2(PaymentRequest3ds2 paymentRequest3ds2) throws
165181 * @return {@link PaymentResult }
166182 * @throws ApiException if fails to make API call
167183 */
184+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
168185 public PaymentResult authorise3ds2 (PaymentRequest3ds2 paymentRequest3ds2 , RequestOptions requestOptions ) throws ApiException , IOException {
169186
170187 String requestBody = paymentRequest3ds2 .toJson ();
@@ -180,6 +197,7 @@ public PaymentResult authorise3ds2(PaymentRequest3ds2 paymentRequest3ds2, Reques
180197 * @return {@link ModificationResult }
181198 * @throws ApiException if fails to make API call
182199 */
200+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
183201 public ModificationResult cancel (CancelRequest cancelRequest ) throws ApiException , IOException {
184202 return cancel (cancelRequest , null );
185203 }
@@ -192,6 +210,7 @@ public ModificationResult cancel(CancelRequest cancelRequest) throws ApiExceptio
192210 * @return {@link ModificationResult }
193211 * @throws ApiException if fails to make API call
194212 */
213+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
195214 public ModificationResult cancel (CancelRequest cancelRequest , RequestOptions requestOptions ) throws ApiException , IOException {
196215
197216 String requestBody = cancelRequest .toJson ();
@@ -207,6 +226,7 @@ public ModificationResult cancel(CancelRequest cancelRequest, RequestOptions req
207226 * @return {@link ModificationResult }
208227 * @throws ApiException if fails to make API call
209228 */
229+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
210230 public ModificationResult cancelOrRefund (CancelOrRefundRequest cancelOrRefundRequest ) throws ApiException , IOException {
211231 return cancelOrRefund (cancelOrRefundRequest , null );
212232 }
@@ -219,6 +239,7 @@ public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundReq
219239 * @return {@link ModificationResult }
220240 * @throws ApiException if fails to make API call
221241 */
242+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
222243 public ModificationResult cancelOrRefund (CancelOrRefundRequest cancelOrRefundRequest , RequestOptions requestOptions ) throws ApiException , IOException {
223244
224245 String requestBody = cancelOrRefundRequest .toJson ();
@@ -234,6 +255,7 @@ public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundReq
234255 * @return {@link ModificationResult }
235256 * @throws ApiException if fails to make API call
236257 */
258+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
237259 public ModificationResult capture (CaptureRequest captureRequest ) throws ApiException , IOException {
238260 return capture (captureRequest , null );
239261 }
@@ -246,6 +268,7 @@ public ModificationResult capture(CaptureRequest captureRequest) throws ApiExcep
246268 * @return {@link ModificationResult }
247269 * @throws ApiException if fails to make API call
248270 */
271+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
249272 public ModificationResult capture (CaptureRequest captureRequest , RequestOptions requestOptions ) throws ApiException , IOException {
250273
251274 String requestBody = captureRequest .toJson ();
@@ -260,7 +283,7 @@ public ModificationResult capture(CaptureRequest captureRequest, RequestOptions
260283 * @param donationRequest {@link DonationRequest } (required)
261284 * @return {@link ModificationResult }
262285 * @throws ApiException if fails to make API call
263- * @deprecated
286+ * @deprecated // Use Checkout donations instead
264287 */
265288 @ Deprecated
266289 public ModificationResult donate (DonationRequest donationRequest ) throws ApiException , IOException {
@@ -274,7 +297,7 @@ public ModificationResult donate(DonationRequest donationRequest) throws ApiExce
274297 * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional)
275298 * @return {@link ModificationResult }
276299 * @throws ApiException if fails to make API call
277- * @deprecated
300+ * @deprecated // Use Checkout donations instead
278301 */
279302 @ Deprecated
280303 public ModificationResult donate (DonationRequest donationRequest , RequestOptions requestOptions ) throws ApiException , IOException {
@@ -292,6 +315,7 @@ public ModificationResult donate(DonationRequest donationRequest, RequestOptions
292315 * @return {@link AuthenticationResultResponse }
293316 * @throws ApiException if fails to make API call
294317 */
318+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
295319 public AuthenticationResultResponse getAuthenticationResult (AuthenticationResultRequest authenticationResultRequest ) throws ApiException , IOException {
296320 return getAuthenticationResult (authenticationResultRequest , null );
297321 }
@@ -304,6 +328,7 @@ public AuthenticationResultResponse getAuthenticationResult(AuthenticationResult
304328 * @return {@link AuthenticationResultResponse }
305329 * @throws ApiException if fails to make API call
306330 */
331+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
307332 public AuthenticationResultResponse getAuthenticationResult (AuthenticationResultRequest authenticationResultRequest , RequestOptions requestOptions ) throws ApiException , IOException {
308333
309334 String requestBody = authenticationResultRequest .toJson ();
@@ -319,6 +344,7 @@ public AuthenticationResultResponse getAuthenticationResult(AuthenticationResult
319344 * @return {@link ModificationResult }
320345 * @throws ApiException if fails to make API call
321346 */
347+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
322348 public ModificationResult refund (RefundRequest refundRequest ) throws ApiException , IOException {
323349 return refund (refundRequest , null );
324350 }
@@ -331,6 +357,7 @@ public ModificationResult refund(RefundRequest refundRequest) throws ApiExceptio
331357 * @return {@link ModificationResult }
332358 * @throws ApiException if fails to make API call
333359 */
360+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
334361 public ModificationResult refund (RefundRequest refundRequest , RequestOptions requestOptions ) throws ApiException , IOException {
335362
336363 String requestBody = refundRequest .toJson ();
@@ -346,6 +373,7 @@ public ModificationResult refund(RefundRequest refundRequest, RequestOptions req
346373 * @return {@link ThreeDS2ResultResponse }
347374 * @throws ApiException if fails to make API call
348375 */
376+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
349377 public ThreeDS2ResultResponse retrieve3ds2Result (ThreeDS2ResultRequest threeDS2ResultRequest ) throws ApiException , IOException {
350378 return retrieve3ds2Result (threeDS2ResultRequest , null );
351379 }
@@ -358,6 +386,7 @@ public ThreeDS2ResultResponse retrieve3ds2Result(ThreeDS2ResultRequest threeDS2R
358386 * @return {@link ThreeDS2ResultResponse }
359387 * @throws ApiException if fails to make API call
360388 */
389+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.PaymentsApi
361390 public ThreeDS2ResultResponse retrieve3ds2Result (ThreeDS2ResultRequest threeDS2ResultRequest , RequestOptions requestOptions ) throws ApiException , IOException {
362391
363392 String requestBody = threeDS2ResultRequest .toJson ();
@@ -373,6 +402,7 @@ public ThreeDS2ResultResponse retrieve3ds2Result(ThreeDS2ResultRequest threeDS2R
373402 * @return {@link ModificationResult }
374403 * @throws ApiException if fails to make API call
375404 */
405+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
376406 public ModificationResult technicalCancel (TechnicalCancelRequest technicalCancelRequest ) throws ApiException , IOException {
377407 return technicalCancel (technicalCancelRequest , null );
378408 }
@@ -385,6 +415,7 @@ public ModificationResult technicalCancel(TechnicalCancelRequest technicalCancel
385415 * @return {@link ModificationResult }
386416 * @throws ApiException if fails to make API call
387417 */
418+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
388419 public ModificationResult technicalCancel (TechnicalCancelRequest technicalCancelRequest , RequestOptions requestOptions ) throws ApiException , IOException {
389420
390421 String requestBody = technicalCancelRequest .toJson ();
@@ -400,6 +431,7 @@ public ModificationResult technicalCancel(TechnicalCancelRequest technicalCancel
400431 * @return {@link ModificationResult }
401432 * @throws ApiException if fails to make API call
402433 */
434+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
403435 public ModificationResult voidPendingRefund (VoidPendingRefundRequest voidPendingRefundRequest ) throws ApiException , IOException {
404436 return voidPendingRefund (voidPendingRefundRequest , null );
405437 }
@@ -412,6 +444,7 @@ public ModificationResult voidPendingRefund(VoidPendingRefundRequest voidPending
412444 * @return {@link ModificationResult }
413445 * @throws ApiException if fails to make API call
414446 */
447+ @ Deprecated (since = "v37.0.0" , forRemoval = true ) // Use instead com.adyen.service.payment.ModificationsApi
415448 public ModificationResult voidPendingRefund (VoidPendingRefundRequest voidPendingRefundRequest , RequestOptions requestOptions ) throws ApiException , IOException {
416449
417450 String requestBody = voidPendingRefundRequest .toJson ();
0 commit comments