Skip to content

Commit

Permalink
update openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaconsalvi committed Nov 20, 2024
1 parent 0619313 commit c6d70d0
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions openapi/activation.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,14 @@ components:
# --------------------------------------------------------------------------
# Domain specific basic types.
# --------------------------------------------------------------------------
Bic:
description: Bank Identification Code.
type: string
pattern: "^[A-Z0-9]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3}){0,1}$"
minLength: 8
maxLength: 11
example: "UNCRITMM"

EffectiveActivationDate:
description: |
Effective activation date (B035).
Expand All @@ -467,7 +475,7 @@ components:

FiscalCode:
description: |
Fiscal (or tax) code.
Fiscal code.
It is used as identifier of the Payer (P009) and of the Payee (E005).
type: string
Expand All @@ -476,17 +484,29 @@ components:
maxLength: 16
example: "RSSMRA85T10A562S"

Lei:
description: |
Legal Entity Identifier is a code allocated to a party as described in
ISO 17442 "Financial Services - Legal Entity Identifier (LEI)".
type: string
pattern: "^[A-Z0-9]{18}[0-9]{2}$"
minLength: 20
maxLength: 20
example: "984500A9EB6B07AC2G71"

PartyId:
description: |
Unique and unambiguous identification of a party.
It is used as identifier of the Payer’s RTP Service Provider (N001) and
for Payee’s RTP Service Provider (N002).
type: string
pattern: "^[ -~]{1,35}$"
minLength: 1
maxLength: 35
example: "12345678901"
A Service Provider is identified by its BIC (Bank Identification Code)
if it is a PSP, otherwise it is identified by its LEI (Legal Entity
Identifier).
oneOf:
- $ref: '#/components/schemas/Bic'
- $ref: '#/components/schemas/Lei'

# --------------------------------------------------------------------------
# Complex types for paging.
Expand Down Expand Up @@ -572,7 +592,7 @@ components:
effectiveActivationDate: "2024-10-30T16:39:34+01:00"
payer:
fiscalCode: "RSSMRA85T10A562S"
rtpSpId: "10987654321"
rtpSpId: "984500A9EB6B07AC2G71"

Activations:
description: List of RTP activations.
Expand All @@ -586,7 +606,7 @@ components:
effectiveActivationDate: "2024-10-30T16:39:34+01:00"
payer:
fiscalCode: "RSSMRA85T10A562S"
rtpSpId: "10987654321"
rtpSpId: "984500A9EB6B07AC2G71"

ActivationReq:
description: |
Expand All @@ -601,7 +621,7 @@ components:
example:
payer:
fiscalCode: "RSSMRA85T10A562S"
rtpSpId: "10987654321"
rtpSpId: "984500A9EB6B07AC2G71"

PageOfActivations:
description: Page of RTP activations.
Expand All @@ -621,7 +641,7 @@ components:
effectiveActivationDate: "2024-10-30T16:39:34+01:00"
payer:
fiscalCode: "RSSMRA85T10A562S"
rtpSpId: "10987654321"
rtpSpId: "984500A9EB6B07AC2G71"
page:
totalElements: 2
totalPages: 2
Expand All @@ -643,7 +663,7 @@ components:
- rtpSpId
example:
fiscalCode: "RSSMRA85T10A562S"
rtpSpId: "10987654321"
rtpSpId: "984500A9EB6B07AC2G71"

# ============================================================================
# Request bodies.
Expand Down Expand Up @@ -861,4 +881,4 @@ components:
scopes:
admin_rtp_activations: Admin RPT activation.
write_rtp_activations: Create, update or delete RTP activation.
read_rtp_activations: Read RTP activation.
read_rtp_activations: Read RTP activation.

0 comments on commit c6d70d0

Please sign in to comment.