2022-10-15 15:32:32 +02:00
|
|
|
get:
|
|
|
|
summary: Returns a list of (optionally filtered) SEPA Mandates.
|
2024-09-16 15:36:37 +02:00
|
|
|
description: Returns the list of (optionally filtered) SEPA Mandates which are visible to the current subject or any of it's assumed roles.
|
2022-10-15 15:32:32 +02:00
|
|
|
tags:
|
|
|
|
- hs-office-sepaMandates
|
|
|
|
operationId: listSepaMandatesByIBAN
|
|
|
|
parameters:
|
2024-09-16 15:36:37 +02:00
|
|
|
- $ref: 'auth.yaml#/components/parameters/currentSubject'
|
2024-04-16 10:08:00 +02:00
|
|
|
- $ref: 'auth.yaml#/components/parameters/assumedRoles'
|
2022-10-15 15:32:32 +02:00
|
|
|
- name: name
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
description: (Beginning of) IBAN to filter the results.
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
'application/json':
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandate'
|
2022-10-15 15:32:32 +02:00
|
|
|
"401":
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'error-responses.yaml#/components/responses/Unauthorized'
|
2022-10-15 15:32:32 +02:00
|
|
|
"403":
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'error-responses.yaml#/components/responses/Forbidden'
|
2022-10-15 15:32:32 +02:00
|
|
|
|
|
|
|
post:
|
|
|
|
summary: Adds a new SEPA Mandate.
|
|
|
|
tags:
|
|
|
|
- hs-office-sepaMandates
|
|
|
|
operationId: addSepaMandate
|
|
|
|
parameters:
|
2024-09-16 15:36:37 +02:00
|
|
|
- $ref: 'auth.yaml#/components/parameters/currentSubject'
|
2024-04-16 10:08:00 +02:00
|
|
|
- $ref: 'auth.yaml#/components/parameters/assumedRoles'
|
2022-10-15 15:32:32 +02:00
|
|
|
requestBody:
|
|
|
|
description: A JSON object describing the new SEPA-Mandate.
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandateInsert'
|
2022-10-15 15:32:32 +02:00
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: Created
|
|
|
|
content:
|
|
|
|
'application/json':
|
|
|
|
schema:
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandate'
|
2022-10-15 15:32:32 +02:00
|
|
|
"401":
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'error-responses.yaml#/components/responses/Unauthorized'
|
2022-10-15 15:32:32 +02:00
|
|
|
"403":
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'error-responses.yaml#/components/responses/Forbidden'
|
2022-10-15 15:32:32 +02:00
|
|
|
"409":
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'error-responses.yaml#/components/responses/Conflict'
|