Skip to content

Commit 0c715db

Browse files
committed
Deprecate PaymentsAppAPI in service root folder
1 parent f89820f commit 0c715db

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

src/services/paymentsAppApi.ts

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ import { IRequest } from "../typings/requestOptions";
1717
import Resource from "./resource";
1818
import { ObjectSerializer } from "../typings/paymentsApp/models";
1919

20+
/**
21+
* This class is deprecated
22+
*
23+
* The service has been moved to a different package 'paymentsApp'
24+
* @deprecated Use services/paymentsApp/PaymentsAppAPI
25+
*/
2026
export class PaymentsAppAPI extends Service {
2127

2228
private readonly API_BASEPATH: string = "https://management-live.adyen.com/v1";
@@ -28,6 +34,8 @@ export class PaymentsAppAPI extends Service {
2834
}
2935

3036
/**
37+
* @deprecated Use services/paymentsApp/PaymentsAppAPI
38+
*
3139
* @summary Create a boarding token - merchant level
3240
* @param merchantId {@link string } The unique identifier of the merchant account.
3341
* @param boardingTokenRequest {@link BoardingTokenRequest }
@@ -38,16 +46,18 @@ export class PaymentsAppAPI extends Service {
3846
const endpoint = `${this.baseUrl}/merchants/{merchantId}/generatePaymentsAppBoardingToken`
3947
.replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId)));
4048
const resource = new Resource(this, endpoint);
41-
const request: BoardingTokenRequest = ObjectSerializer.serialize(boardingTokenRequest, "BoardingTokenRequest");
49+
const request: BoardingTokenRequest = ObjectSerializer.serialize(boardingTokenRequest, "BoardingTokenRequest", "");
4250
const response = await getJsonResponse<BoardingTokenRequest, BoardingTokenResponse>(
4351
resource,
4452
request,
4553
{ ...requestOptions, method: "POST" }
4654
);
47-
return ObjectSerializer.deserialize(response, "BoardingTokenResponse");
55+
return ObjectSerializer.deserialize(response, "BoardingTokenResponse", "");
4856
}
4957

5058
/**
59+
* @deprecated Use services/paymentsApp/PaymentsAppAPI
60+
*
5161
* @summary Create a boarding token - store level
5262
* @param merchantId {@link string } The unique identifier of the merchant account.
5363
* @param storeId {@link string } The unique identifier of the store.
@@ -60,16 +70,18 @@ export class PaymentsAppAPI extends Service {
6070
.replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId)))
6171
.replace("{" + "storeId" + "}", encodeURIComponent(String(storeId)));
6272
const resource = new Resource(this, endpoint);
63-
const request: BoardingTokenRequest = ObjectSerializer.serialize(boardingTokenRequest, "BoardingTokenRequest");
73+
const request: BoardingTokenRequest = ObjectSerializer.serialize(boardingTokenRequest, "BoardingTokenRequest", "");
6474
const response = await getJsonResponse<BoardingTokenRequest, BoardingTokenResponse>(
6575
resource,
6676
request,
6777
{ ...requestOptions, method: "POST" }
6878
);
69-
return ObjectSerializer.deserialize(response, "BoardingTokenResponse");
79+
return ObjectSerializer.deserialize(response, "BoardingTokenResponse", "");
7080
}
7181

7282
/**
83+
* @deprecated Use services/paymentsApp/PaymentsAppAPI
84+
*
7385
* @summary Get a list of Payments Apps - merchant level
7486
* @param merchantId {@link string } The unique identifier of the merchant account.
7587
* @param requestOptions {@link IRequest.Options }
@@ -87,10 +99,12 @@ export class PaymentsAppAPI extends Service {
8799
"",
88100
{ ...requestOptions, method: "GET" }
89101
);
90-
return ObjectSerializer.deserialize(response, "PaymentsAppResponse");
102+
return ObjectSerializer.deserialize(response, "PaymentsAppResponse", "");
91103
}
92104

93105
/**
106+
* @deprecated Use services/paymentsApp/PaymentsAppAPI
107+
*
94108
* @summary Get a list of Payments Apps - store level
95109
* @param merchantId {@link string } The unique identifier of the merchant account.
96110
* @param storeId {@link string } The unique identifier of the store.
@@ -110,10 +124,12 @@ export class PaymentsAppAPI extends Service {
110124
"",
111125
{ ...requestOptions, method: "GET" }
112126
);
113-
return ObjectSerializer.deserialize(response, "PaymentsAppResponse");
127+
return ObjectSerializer.deserialize(response, "PaymentsAppResponse", "");
114128
}
115129

116130
/**
131+
* @deprecated Use services/paymentsApp/PaymentsAppAPI
132+
*
117133
* @summary Revoke Payments App instance authentication
118134
* @param merchantId {@link string } The unique identifier of the merchant account.
119135
* @param installationId {@link string } The unique identifier of the Payments App instance on a device.

0 commit comments

Comments
 (0)