This commit is contained in:
Stephan D
2026-02-27 01:29:57 +01:00
parent 560e2213b5
commit 7d6d7c3f56
47 changed files with 196 additions and 73 deletions

View File

@@ -1,11 +1,12 @@
get:
tags: [PaymentMethods]
tags: [Payment Methods]
summary: Get payment method
description: Returns payment method by `payment_methods_ref`.
operationId: paymentMethodsGet
security:
- bearerAuth: []
parameters:
- $ref: ../parameters/payment_methods_ref.yaml#/components/parameters/PaymentMethodsRef
- $ref: ../parameters/payment_methods_ref.yaml#/components/parameters/Payment MethodsRef
responses:
'200':
description: Payment method data
@@ -17,7 +18,7 @@ get:
- type: object
properties:
data:
$ref: ./response/payment_method.yaml#/components/schemas/PaymentMethodsAuthData
$ref: ./response/payment_method.yaml#/components/schemas/Payment MethodsAuthData
'400':
$ref: ../response/operation.yaml#/components/responses/BadRequest
'401':
@@ -30,13 +31,14 @@ get:
$ref: ../response/operation.yaml#/components/responses/InternalServerError
delete:
tags: [PaymentMethods]
tags: [Payment Methods]
summary: Delete payment method
description: Deletes payment method by reference. Use `cascade=true` to remove dependent objects when supported.
operationId: paymentMethodsDelete
security:
- bearerAuth: []
parameters:
- $ref: ../parameters/payment_methods_ref.yaml#/components/parameters/PaymentMethodsRef
- $ref: ../parameters/payment_methods_ref.yaml#/components/parameters/Payment MethodsRef
- $ref: ../parameters/cascade.yaml#/components/parameters/Cascade
responses:
'200':
@@ -49,7 +51,7 @@ delete:
- type: object
properties:
data:
$ref: ./response/payment_method.yaml#/components/schemas/PaymentMethodsAuthData
$ref: ./response/payment_method.yaml#/components/schemas/Payment MethodsAuthData
'400':
$ref: ../response/operation.yaml#/components/responses/BadRequest
'401':