@@ -17,6 +17,12 @@ import { IRequest } from "../typings/requestOptions";
17
17
import Resource from "./resource" ;
18
18
import { ObjectSerializer } from "../typings/paymentsApp/models" ;
19
19
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
+ */
20
26
export class PaymentsAppAPI extends Service {
21
27
22
28
private readonly API_BASEPATH : string = "https://management-live.adyen.com/v1" ;
@@ -28,6 +34,8 @@ export class PaymentsAppAPI extends Service {
28
34
}
29
35
30
36
/**
37
+ * @deprecated Use services/paymentsApp/PaymentsAppAPI
38
+ *
31
39
* @summary Create a boarding token - merchant level
32
40
* @param merchantId {@link string } The unique identifier of the merchant account.
33
41
* @param boardingTokenRequest {@link BoardingTokenRequest }
@@ -38,16 +46,18 @@ export class PaymentsAppAPI extends Service {
38
46
const endpoint = `${ this . baseUrl } /merchants/{merchantId}/generatePaymentsAppBoardingToken`
39
47
. replace ( "{" + "merchantId" + "}" , encodeURIComponent ( String ( merchantId ) ) ) ;
40
48
const resource = new Resource ( this , endpoint ) ;
41
- const request : BoardingTokenRequest = ObjectSerializer . serialize ( boardingTokenRequest , "BoardingTokenRequest" ) ;
49
+ const request : BoardingTokenRequest = ObjectSerializer . serialize ( boardingTokenRequest , "BoardingTokenRequest" , "" ) ;
42
50
const response = await getJsonResponse < BoardingTokenRequest , BoardingTokenResponse > (
43
51
resource ,
44
52
request ,
45
53
{ ...requestOptions , method : "POST" }
46
54
) ;
47
- return ObjectSerializer . deserialize ( response , "BoardingTokenResponse" ) ;
55
+ return ObjectSerializer . deserialize ( response , "BoardingTokenResponse" , "" ) ;
48
56
}
49
57
50
58
/**
59
+ * @deprecated Use services/paymentsApp/PaymentsAppAPI
60
+ *
51
61
* @summary Create a boarding token - store level
52
62
* @param merchantId {@link string } The unique identifier of the merchant account.
53
63
* @param storeId {@link string } The unique identifier of the store.
@@ -60,16 +70,18 @@ export class PaymentsAppAPI extends Service {
60
70
. replace ( "{" + "merchantId" + "}" , encodeURIComponent ( String ( merchantId ) ) )
61
71
. replace ( "{" + "storeId" + "}" , encodeURIComponent ( String ( storeId ) ) ) ;
62
72
const resource = new Resource ( this , endpoint ) ;
63
- const request : BoardingTokenRequest = ObjectSerializer . serialize ( boardingTokenRequest , "BoardingTokenRequest" ) ;
73
+ const request : BoardingTokenRequest = ObjectSerializer . serialize ( boardingTokenRequest , "BoardingTokenRequest" , "" ) ;
64
74
const response = await getJsonResponse < BoardingTokenRequest , BoardingTokenResponse > (
65
75
resource ,
66
76
request ,
67
77
{ ...requestOptions , method : "POST" }
68
78
) ;
69
- return ObjectSerializer . deserialize ( response , "BoardingTokenResponse" ) ;
79
+ return ObjectSerializer . deserialize ( response , "BoardingTokenResponse" , "" ) ;
70
80
}
71
81
72
82
/**
83
+ * @deprecated Use services/paymentsApp/PaymentsAppAPI
84
+ *
73
85
* @summary Get a list of Payments Apps - merchant level
74
86
* @param merchantId {@link string } The unique identifier of the merchant account.
75
87
* @param requestOptions {@link IRequest.Options }
@@ -87,10 +99,12 @@ export class PaymentsAppAPI extends Service {
87
99
"" ,
88
100
{ ...requestOptions , method : "GET" }
89
101
) ;
90
- return ObjectSerializer . deserialize ( response , "PaymentsAppResponse" ) ;
102
+ return ObjectSerializer . deserialize ( response , "PaymentsAppResponse" , "" ) ;
91
103
}
92
104
93
105
/**
106
+ * @deprecated Use services/paymentsApp/PaymentsAppAPI
107
+ *
94
108
* @summary Get a list of Payments Apps - store level
95
109
* @param merchantId {@link string } The unique identifier of the merchant account.
96
110
* @param storeId {@link string } The unique identifier of the store.
@@ -110,10 +124,12 @@ export class PaymentsAppAPI extends Service {
110
124
"" ,
111
125
{ ...requestOptions , method : "GET" }
112
126
) ;
113
- return ObjectSerializer . deserialize ( response , "PaymentsAppResponse" ) ;
127
+ return ObjectSerializer . deserialize ( response , "PaymentsAppResponse" , "" ) ;
114
128
}
115
129
116
130
/**
131
+ * @deprecated Use services/paymentsApp/PaymentsAppAPI
132
+ *
117
133
* @summary Revoke Payments App instance authentication
118
134
* @param merchantId {@link string } The unique identifier of the merchant account.
119
135
* @param installationId {@link string } The unique identifier of the Payments App instance on a device.
0 commit comments