From 14e2461a3d95bfd08d772158ac16f66814da7831 Mon Sep 17 00:00:00 2001
From: Andrea Morabito <andrea.morabito@pagopa.it>
Date: Thu, 30 Jan 2025 14:21:52 +0100
Subject: [PATCH 1/4] replace LEI with VAT pattern regex for creditor service
 provider

---
 openapi/activation.openapi.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openapi/activation.openapi.yaml b/openapi/activation.openapi.yaml
index 12249937..e26092f6 100644
--- a/openapi/activation.openapi.yaml
+++ b/openapi/activation.openapi.yaml
@@ -491,7 +491,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.

From a9fa33ce6ffc12df46485dd028e1b0fd1fa39f58 Mon Sep 17 00:00:00 2001
From: Andrea Morabito <andrea.morabito@pagopa.it>
Date: Thu, 30 Jan 2025 14:26:09 +0100
Subject: [PATCH 2/4] update trigger condition of CI workflow

---
 .github/workflows/ci.yml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0c044d07..cd3f3208 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -7,7 +7,6 @@ on:
       - main
     types:
       - opened
-      - edited
       - synchronize
     paths:
       - 'src/**'

From 2280c35a16b0c31a8d202161d18993793f012d9c Mon Sep 17 00:00:00 2001
From: Andrea Morabito <andrea.morabito@pagopa.it>
Date: Thu, 30 Jan 2025 14:27:28 +0100
Subject: [PATCH 3/4] update openapi schema

---
 openapi/activation.openapi.yaml | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/openapi/activation.openapi.yaml b/openapi/activation.openapi.yaml
index e26092f6..f5f60276 100644
--- a/openapi/activation.openapi.yaml
+++ b/openapi/activation.openapi.yaml
@@ -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: |

From 2c54306aa336b21e047f6d229e6d9e7d3ded367b Mon Sep 17 00:00:00 2001
From: Andrea Morabito <andrea.morabito@pagopa.it>
Date: Thu, 30 Jan 2025 14:53:48 +0100
Subject: [PATCH 4/4] update tests

---
 src/test/java/it/gov/pagopa/rtp/activator/utils/Users.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/it/gov/pagopa/rtp/activator/utils/Users.java b/src/test/java/it/gov/pagopa/rtp/activator/utils/Users.java
index abf27562..1ce337e2 100644
--- a/src/test/java/it/gov/pagopa/rtp/activator/utils/Users.java
+++ b/src/test/java/it/gov/pagopa/rtp/activator/utils/Users.java
@@ -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";