spid-php-lib icon indicating copy to clipboard operation
spid-php-lib copied to clipboard

Add ContactPerson tag in metadata for aggregator (required by Avviso nr. 19 v4)

Open SeemoneB opened this issue 3 years ago • 2 comments

SeemoneB avatar Nov 08 '22 10:11 SeemoneB

Is this related to https://github.com/italia/spid-php-lib/pull/114 in any way?

lussoluca avatar Nov 08 '22 15:11 lussoluca

Is this related to #114 in any way?

It is similar, but in this PR I managed the tag ContactPerson also for aggregator and aggregated data. One example below

<md:ContactPerson contactType="other" spid:entityType="spid:aggregator">
	<md:Extensions>
		<spid:VATNumber>vatNumber</spid:VATNumber>
		<spid:FiscalCode>fiscalcode</spid:FiscalCode>
		<spid:PublicServicesLightAggregator/>
	</md:Extensions>
	<md:Company>companyName</md:Company>
	<md:emailaddress>companyEmail</md:EmailAddress>
	<md:TelephoneNumber>companyPhone</md:TelephoneNumber>
</md:ContactPerson>
<md:ContactPerson contactType="other" spid:entityType="spid:aggregated">
	<md:Extensions>
		<spid:IPACode>__aggrsint</spid:IPACode>
		<spid:Public/>
	</md:Extensions>
	<md:Company>Organizzazione fittizia per il collaudo</md:Company>
</md:ContactPerson>

As you can see there is the possibility to insert more then one ContactPerson tag and you can define the empty tag like <spid:Public/> or <spid:PublicServicesLightAggregator/>. Required by Avviso nr 19

The next step would be manage the billing information. It can be done easily

SeemoneB avatar Nov 09 '22 08:11 SeemoneB