65 lines
2.3 KiB
YAML
65 lines
2.3 KiB
YAML
get:
|
|
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/Payment MethodsRef
|
|
responses:
|
|
'200':
|
|
description: Payment method data
|
|
content:
|
|
application/json:
|
|
schema:
|
|
allOf:
|
|
- $ref: ../response/response.yaml#/components/schemas/BaseResponse
|
|
- type: object
|
|
properties:
|
|
data:
|
|
$ref: ./response/payment_method.yaml#/components/schemas/Payment MethodsAuthData
|
|
'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
|
|
|
|
delete:
|
|
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/Payment MethodsRef
|
|
- $ref: ../parameters/cascade.yaml#/components/parameters/Cascade
|
|
responses:
|
|
'200':
|
|
description: Payment method deleted
|
|
content:
|
|
application/json:
|
|
schema:
|
|
allOf:
|
|
- $ref: ../response/response.yaml#/components/schemas/BaseResponse
|
|
- type: object
|
|
properties:
|
|
data:
|
|
$ref: ./response/payment_method.yaml#/components/schemas/Payment MethodsAuthData
|
|
'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
|