@@ -76,14 +76,34 @@ traits:
7676 ],
7777 },
7878 ]
79+ secured_by_view_payment_integrations :
80+ securedBy :
81+ [
82+ oauth_2_0 :
83+ { scopes: ['view_checkout_payment_integrations:{projectKey}'] },
84+ ]
85+ secured_by_manage_payment_integrations :
86+ securedBy :
87+ [
88+ oauth_2_0 :
89+ { scopes: ['manage_checkout_payment_integrations:{projectKey}'] },
90+ ]
91+ secured_by_view_applications :
92+ securedBy :
93+ [oauth_2_0 : { scopes: ['view_checkout_applications:{projectKey}'] }]
94+ secured_by_manage_applications :
95+ securedBy :
96+ [oauth_2_0 : { scopes: ['manage_checkout_applications:{projectKey}'] }]
7997
8098/{projectKey} :
8199 (annotations.methodName) : withProjectKey
82100 uriParameters :
83101 projectKey :
84102 type : string
85103 description : Identifier of your Checkout entity and `key` of your [Project](/../api/projects/project#project).
104+ displayName : Project
86105 /payment-intents :
106+ displayName : Payment Intents
87107 /{paymentId} :
88108 (annotations.methodName) : withPaymentId
89109 uriParameters :
@@ -92,6 +112,7 @@ traits:
92112 description : |
93113 `id` of the [Payment](/../api/projects/payments).
94114 post :
115+ displayName : Manage Payment by ID
95116 is :
96117 - secured_by_manage_payments
97118 body :
@@ -111,7 +132,9 @@ traits:
111132 body :
112133 type : ErrorResponse
113134 /transactions :
135+ displayName : Transactions
114136 post :
137+ displayName : Create Transaction
115138 is :
116139 - secured_by_manage_transactions
117140 body :
@@ -141,6 +164,7 @@ traits:
141164 description : |
142165 `id` of the [Transaction](/transactions-api#transaction).
143166 get :
167+ displayName : Get Transaction by ID
144168 is :
145169 - secured_by_view_transactions
146170 description : |
@@ -164,6 +188,7 @@ traits:
164188 description : |
165189 `key` of the [Transaction](/transactions-api#transaction).
166190 get :
191+ displayName : Get Transaction by key
167192 is :
168193 - secured_by_view_transactions
169194 description : |
@@ -179,3 +204,306 @@ traits:
179204 description : The request was invalid.
180205 body :
181206 type : ErrorResponse
207+ /payment-integrations :
208+ get :
209+ is :
210+ - secured_by_view_payment_integrations
211+ description : |
212+ Retrieves Payment Integrations in a [Project](/../api/projects#project).
213+
214+ The results are [paginated](/../api/general-concepts#pagination).
215+ queryParameters :
216+ sort? :
217+ type : string[]
218+ description : |
219+ Controls [Sorting](/general-concepts#sorting) of query results.
220+ example : ['createdAt asc', 'name desc']
221+ limit? :
222+ type : integer
223+ format : int32
224+ description : |
225+ Number of results requested.
226+ default : 20
227+ minimum : 0
228+ maximum : 500
229+ offset? :
230+ type : integer
231+ format : int32
232+ description : |
233+ Number of elements skipped.
234+ default : 0
235+ maximum : 10000
236+ withTotal? :
237+ type : boolean
238+ default : true
239+ description : |
240+ Controls the calculation of the total number of query results.
241+ responses :
242+ 200 :
243+ body :
244+ type : PaginatedPaymentIntegration
245+ example : !include ../checkout/examples/payment-integrations/paginatedPaymentIntegrations.json
246+ post :
247+ is :
248+ - secured_by_manage_payment_integrations
249+ description : |
250+ Creates a new PaymentIntegration.
251+ body :
252+ type : PaymentIntegrationDraft
253+ example : !include ../checkout/examples/payment-integrations/paymentIntegrationDraft.json
254+ responses :
255+ 201 :
256+ body :
257+ type : PaymentIntegration
258+ example : !include ../checkout/examples/payment-integrations/paymentIntegration.json
259+
260+ 400 :
261+ description : The request was invalid.
262+ body :
263+ type : ErrorResponse
264+ /{id} :
265+ (annotations.methodName) : withId
266+ uriParameters :
267+ id :
268+ type : string
269+ description : |
270+ `id` of the [PaymentIntegration](/payment-integrations-api#payment-integration).
271+ get :
272+ is :
273+ - secured_by_view_payment_integrations
274+ description : |
275+ Retrieves Payment Integrations in a [Project](/..api/projects/project#project) with a given `id`.
276+ responses :
277+ 200 :
278+ body :
279+ type : PaymentIntegration
280+ example : !include ../checkout/examples/payment-integrations/paymentIntegration.json
281+
282+ head :
283+ is :
284+ - secured_by_view_payment_integrations
285+ description : |
286+ Checks if a PaymentIntegration with a given `id` exists. Returns `200 OK` if the PaymentIntegration exists, or `404 Not Found` if it doesn't. Specific Error Codes:
287+ - [ResourceNotFound](ctp:checkout:type:ResourceNotFoundError)
288+ - [GeneralError](ctp:checkout:type:GeneralError)
289+ responses :
290+ 200 :
291+ description : PaymentIntegration exists
292+ post :
293+ is :
294+ - secured_by_manage_payment_integrations
295+ body :
296+ type : PaymentIntegrationUpdateActions
297+ example : !include examples/payment-integrations/paymentIntegrationUpdateActions.json
298+ responses :
299+ 200 :
300+ body :
301+ type : PaymentIntegration
302+ delete :
303+ is :
304+ - secured_by_manage_payment_integrations
305+ body :
306+ type : PaymentIntegration
307+ responses :
308+ 200 :
309+ body :
310+ type : PaymentIntegration
311+ /key={key} :
312+ (annotations.methodName) : withKey
313+ uriParameters :
314+ key :
315+ type : string
316+ description : |
317+ `key` of the [PaymentIntegration](/payment-integrations-api#paymentintegration).
318+ get :
319+ is :
320+ - secured_by_view_payment_integrations
321+ description : |
322+ Retrieves Payment Integrations in a [Project](/..api/projects/project#project with a given `key`. Specific Error Codes:
323+ - [ResourceNotFound](ctp:checkout:type:ResourceNotFoundError)
324+ - [GeneralError](ctp:checkout:type:GeneralError)
325+ responses :
326+ 200 :
327+ body :
328+ type : PaymentIntegration
329+ example : !include ../checkout/examples/payment-integrations/paymentIntegration.json
330+
331+ post :
332+ is :
333+ - secured_by_manage_payment_integrations
334+ body :
335+ type : PaymentIntegrationUpdateActions
336+ responses :
337+ 200 :
338+ body :
339+ type : PaymentIntegration
340+ head :
341+ is :
342+ - secured_by_view_payment_integrations
343+ description : |
344+ Checks if a PaymentIntegration with a given `key` exists. Returns `200 OK` if the PaymentIntegration exists, or `404 Not Found` if it doesn't. Specific Error Codes:
345+ - [ResourceNotFound](ctp:checkout:type:ResourceNotFoundError)
346+ - [GeneralError](ctp:checkout:type:GeneralError)
347+ responses :
348+ 200 :
349+ description : PaymentIntegration exists
350+ delete :
351+ is :
352+ - secured_by_manage_payment_integrations
353+ body :
354+ type : PaymentIntegration
355+ responses :
356+ 200 :
357+ body :
358+ type : PaymentIntegration
359+ /applications :
360+ get :
361+ is :
362+ - secured_by_view_applications
363+ description : |
364+ Retrieves Applications
365+ queryParameters :
366+ sort? :
367+ type : string[]
368+ description : |
369+ Controls [Sorting](/general-concepts#sorting) of query results.
370+ example : ['createdAt asc', 'name desc']
371+ limit? :
372+ type : integer
373+ format : int32
374+ description : |
375+ Number of results requested.
376+ default : 20
377+ minimum : 0
378+ maximum : 500
379+ offset? :
380+ type : integer
381+ format : int32
382+ description : |
383+ Number of elements skipped.
384+ default : 0
385+ maximum : 10000
386+ withTotal? :
387+ type : boolean
388+ default : true
389+ description : |
390+ Controls the calculation of the total number of query results.
391+ responses :
392+ 200 :
393+ body :
394+ type : PaginatedApplication
395+ example : !include examples/applications/paginatedApplications.json
396+ post :
397+ is :
398+ - secured_by_manage_applications
399+ description : |
400+ Creates a new [Application](/applications-api#application).
401+ body :
402+ type : ApplicationDraft
403+ example : !include examples/applications/CompleteFlowApplicationDraft.json
404+
405+ responses :
406+ 201 :
407+ body :
408+ type : Application
409+ example : !include examples/applications/CompleteFlowApplication.json
410+
411+ 400 :
412+ description : The request was invalid.
413+ body :
414+ type : ErrorResponse
415+ /{id} :
416+ (annotations.methodName) : withId
417+ uriParameters :
418+ id :
419+ type : string
420+ description : |
421+ `id` of the [Application](/applications-api#application).
422+ get :
423+ is :
424+ - secured_by_view_applications
425+ description : |
426+ Retrieves an [Application](/applications-api#application) by a given `id`.
427+ responses :
428+ 200 :
429+ body :
430+ type : Application
431+ example : !include examples/applications/CompleteFlowApplication.json
432+ head :
433+ is :
434+ - secured_by_view_applications
435+ description : |
436+ Checks if an [Application](/applications-api#application) with a given `id` exists. Returns `200 OK` if the Application exists, or `404 Not Found` if it doesn't. Specific Error Codes:
437+ - [ResourceNotFound](ctp:checkout:type:ResourceNotFoundError)
438+ - [GeneralError](ctp:checkout:type:GeneralError)
439+ responses :
440+ 200 :
441+ description : Application exists
442+ post :
443+ is :
444+ - secured_by_manage_applications
445+ body :
446+ type : ApplicationUpdateActions
447+ example : !include examples/applications/ApplicationUpdateActions.json
448+ responses :
449+ 200 :
450+ body :
451+ type : Application
452+ delete :
453+ is :
454+ - secured_by_manage_applications
455+ body :
456+ type : Application
457+ responses :
458+ 200 :
459+ body :
460+ type : Application
461+ /key={key} :
462+ (annotations.methodName) : withKey
463+ uriParameters :
464+ key :
465+ type : string
466+ description : |
467+ `key` of the [Application](/applications-api#application).
468+ get :
469+ is :
470+ - secured_by_view_applications
471+ description : |
472+ Retrieves an [Application](/applications-api#application) with a given `key`.
473+ Specific Error Codes:
474+ - [ResourceNotFound](ctp:checkout:type:ResourceNotFoundError)
475+ - [GeneralError](ctp:checkout:type:GeneralError)
476+ responses :
477+ 200 :
478+ body :
479+ type : Application
480+ example : !include ../checkout/examples/applications/PaymentOnlyApplication.json
481+
482+ post :
483+ is :
484+ - secured_by_manage_applications
485+ body :
486+ type : ApplicationUpdateActions
487+ responses :
488+ 200 :
489+ body :
490+ type : Application
491+ head :
492+ is :
493+ - secured_by_view_applications
494+ description : |
495+ Checks if an [Application](/applications-api#application) with a given `key` exists. Returns `200 OK` if the Application exists, or `404 Not Found` if it doesn't. Specific Error Codes:
496+ - [ResourceNotFound](ctp:checkout:type:ResourceNotFoundError)
497+ - [GeneralError](ctp:checkout:type:GeneralError)
498+ responses :
499+ 200 :
500+ description : Application exists
501+ delete :
502+ is :
503+ - secured_by_manage_applications
504+ body :
505+ type : Application
506+ responses :
507+ 200 :
508+ body :
509+ type : Application
0 commit comments