new payment by id method + shell scripts update + mntx removed

This commit is contained in:
Stephan D
2026-03-16 15:43:36 +01:00
parent 23ae8a8089
commit 2fcb150fbf
36 changed files with 348 additions and 26 deletions

View File

@@ -93,6 +93,8 @@ paths:
$ref: ./api/payments/by_quote.yaml
/payments/by-multiquote/{organizations_ref}:
$ref: ./api/payments/by_multiquote.yaml
/payments/object/{payments_ref}:
$ref: ./api/payments/object.yaml
/payments/{organizations_ref}:
$ref: ./api/payments/list.yaml
/payments/documents/operation/{organizations_ref}:

View File

@@ -0,0 +1,10 @@
components:
parameters:
PaymentsRef:
name: payments_ref
in: path
required: true
description: Stable payment reference.
schema:
type: string
minLength: 1

View File

@@ -0,0 +1,31 @@
get:
tags: [Payments]
summary: Get payment by reference
description: Returns a single payment by `payments_ref`.
operationId: paymentsGet
security:
- bearerAuth: []
parameters:
- $ref: ../parameters/payments_ref.yaml#/components/parameters/PaymentsRef
responses:
'200':
description: Payment data
content:
application/json:
schema:
allOf:
- $ref: ../response/response.yaml#/components/schemas/BaseResponse
- type: object
properties:
data:
$ref: ./response/payment.yaml#/components/schemas/PaymentData
'400':
$ref: ../response/operation.yaml#/components/responses/BadRequest
'401':
$ref: ../response/operation.yaml#/components/responses/Unauthorized
'403':
$ref: ../response/operation.yaml#/components/responses/Forbidden
'404':
$ref: ../response/operation.yaml#/components/responses/NotFound
'500':
$ref: ../response/operation.yaml#/components/responses/InternalServerError