Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [SRTP-225] replace LEI with VAT pattern regex for creditor service provider #61

Merged
merged 9 commits into from
Jan 31, 2025
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
- main
types:
- opened
- edited
- synchronize
paths:
- 'src/**'
Expand Down
15 changes: 7 additions & 8 deletions openapi/activation.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -470,15 +470,14 @@ components:
maxLength: 16
example: "RSSMRA85T10A562S"

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

PartyId:
description: |
Expand All @@ -491,7 +490,7 @@ components:
if it is a PSP, otherwise it is identified by its LEI (Legal Entity
Identifier).
type: string
pattern: "(^([A-Z0-9]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3}){0,1})$)|(^[A-Z0-9]{18}[0-9]{2}$)"
pattern: "(^([A-Z0-9]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3}){0,1})$)|(^[0-9]{11}$)"

# --------------------------------------------------------------------------
# Complex types for paging.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

public class Users {

public static final String SERVICE_PROVIDER_ID = "984500A9EB6B07AC2G71";
public static final String SERVICE_PROVIDER_ID = "12345678911";

public static final String ACTIVATION_WRITE_ROLE = "write_rtp_activations";
public static final String ACTIVATION_READ_ROLE = "read_rtp_activations";
Expand Down