-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
88 changed files
with
2,629 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/src/Standards/* export-ignore | ||
.git* export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/vendor/ | ||
/src/Standards/ export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA; | ||
|
||
use Carbon\Carbon; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class Allegati extends Data | ||
{ | ||
public string $NomeAttachment; | ||
public string|Optional $AlgoritmoCompressione; | ||
public string|Optional $FormatoAttachment; | ||
public string|Optional $DescrizioneAttachment; | ||
public mixed $Attachment; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA\AllegatiType; | ||
|
||
use Carbon\Carbon; | ||
use Spatie\LaravelData\Attributes\Validation\Max; | ||
use Spatie\LaravelData\Attributes\Validation\Min; | ||
use Spatie\LaravelData\Attributes\Validation\Regex; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class Allegati extends Data | ||
{ | ||
#[Max(60)] | ||
#[Min(1)] | ||
#[Regex('[\p{IsBasicLatin}\p{IsLatin-1Supplement}]{1,60}')] | ||
public string $NomeAttachment; | ||
|
||
#[Max(10)] | ||
#[Min(1)] | ||
#[Regex('(\p{IsBasicLatin}{1,10})')] | ||
public string|Optional $AlgoritmoCompressione; | ||
|
||
#[Max(10)] | ||
#[Min(1)] | ||
#[Regex('(\p{IsBasicLatin}{1,10})')] | ||
public string|Optional $FormatoAttachment; | ||
|
||
#[Max(100)] | ||
#[Min(1)] | ||
#[Regex('[\p{IsBasicLatin}\p{IsLatin-1Supplement}]{1,100}')] | ||
public string|Optional $DescrizioneAttachment; | ||
public mixed $Attachment; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA; | ||
|
||
use Carbon\Carbon; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class AltriDatiGestionali extends Data | ||
{ | ||
public string $TipoDato; | ||
public string|Optional $RiferimentoTesto; | ||
public float|Optional $RiferimentoNumero; | ||
public Carbon|Optional $RiferimentoData; | ||
} |
31 changes: 31 additions & 0 deletions
31
src/Models/FatturaPA/AltriDatiGestionaliType/AltriDatiGestionali.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA\AltriDatiGestionaliType; | ||
|
||
use Carbon\Carbon; | ||
use Spatie\LaravelData\Attributes\Validation\Max; | ||
use Spatie\LaravelData\Attributes\Validation\Min; | ||
use Spatie\LaravelData\Attributes\Validation\Regex; | ||
use Spatie\LaravelData\Attributes\WithTransformer; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
use Spatie\LaravelData\Transformers\DateTimeInterfaceTransformer; | ||
|
||
class AltriDatiGestionali extends Data | ||
{ | ||
#[Max(10)] | ||
#[Min(1)] | ||
#[Regex('(\p{IsBasicLatin}{1,10})')] | ||
public string $TipoDato; | ||
|
||
#[Max(60)] | ||
#[Min(1)] | ||
#[Regex('[\p{IsBasicLatin}\p{IsLatin-1Supplement}]{1,60}')] | ||
public string|Optional $RiferimentoTesto; | ||
|
||
#[Regex('[\-]?[0-9]{1,11}\.[0-9]{2,8}')] | ||
public float|Optional $RiferimentoNumero; | ||
|
||
#[WithTransformer('Spatie\LaravelData\Transformers\DateTimeInterfaceTransformer', format: 'Y-m-d')] | ||
public Carbon|Optional $RiferimentoData; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA; | ||
|
||
use Carbon\Carbon; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class Anagrafica extends Data | ||
{ | ||
public string $Denominazione; | ||
public string $Nome; | ||
public string $Cognome; | ||
public string|Optional $Titolo; | ||
public string|Optional $CodEORI; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA\AnagraficaType; | ||
|
||
use Carbon\Carbon; | ||
use Spatie\LaravelData\Attributes\Validation\Max; | ||
use Spatie\LaravelData\Attributes\Validation\Min; | ||
use Spatie\LaravelData\Attributes\Validation\Regex; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class Anagrafica extends Data | ||
{ | ||
#[Max(80)] | ||
#[Min(1)] | ||
#[Regex('[\p{IsBasicLatin}\p{IsLatin-1Supplement}]{1,80}')] | ||
public string $Denominazione; | ||
|
||
#[Max(60)] | ||
#[Min(1)] | ||
#[Regex('[\p{IsBasicLatin}\p{IsLatin-1Supplement}]{1,60}')] | ||
public string $Nome; | ||
|
||
#[Max(60)] | ||
#[Min(1)] | ||
#[Regex('[\p{IsBasicLatin}\p{IsLatin-1Supplement}]{1,60}')] | ||
public string $Cognome; | ||
|
||
#[Max(10)] | ||
#[Min(2)] | ||
#[Regex('(\p{IsBasicLatin}{2,10})')] | ||
public string|Optional $Titolo; | ||
public string|Optional $CodEORI; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA; | ||
|
||
use Carbon\Carbon; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\ContattiType\Contatti; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\DatiAnagraficiCedenteType\DatiAnagrafici; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\IndirizzoType\Sede; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\IndirizzoType\StabileOrganizzazione; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\IscrizioneREAType\IscrizioneREA; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class CedentePrestatore extends Data | ||
{ | ||
public DatiAnagrafici $DatiAnagrafici; | ||
public Sede $Sede; | ||
public StabileOrganizzazione|Optional $StabileOrganizzazione; | ||
public IscrizioneREA|Optional $IscrizioneREA; | ||
public Contatti|Optional $Contatti; | ||
public string|Optional $RiferimentoAmministrazione; | ||
} |
29 changes: 29 additions & 0 deletions
29
src/Models/FatturaPA/CedentePrestatoreType/CedentePrestatore.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA\CedentePrestatoreType; | ||
|
||
use Carbon\Carbon; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\ContattiType\Contatti; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\DatiAnagraficiCedenteType\DatiAnagrafici; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\IndirizzoType\Sede; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\IndirizzoType\StabileOrganizzazione; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\IscrizioneREAType\IscrizioneREA; | ||
use Spatie\LaravelData\Attributes\Validation\Max; | ||
use Spatie\LaravelData\Attributes\Validation\Min; | ||
use Spatie\LaravelData\Attributes\Validation\Regex; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class CedentePrestatore extends Data | ||
{ | ||
public DatiAnagrafici $DatiAnagrafici; | ||
public Sede $Sede; | ||
public StabileOrganizzazione|Optional $StabileOrganizzazione; | ||
public IscrizioneREA|Optional $IscrizioneREA; | ||
public Contatti|Optional $Contatti; | ||
|
||
#[Max(20)] | ||
#[Min(1)] | ||
#[Regex('(\p{IsBasicLatin}{1,20})')] | ||
public string|Optional $RiferimentoAmministrazione; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA; | ||
|
||
use Carbon\Carbon; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\DatiAnagraficiCessionarioType\DatiAnagrafici; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\IndirizzoType\Sede; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\IndirizzoType\StabileOrganizzazione; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\RappresentanteFiscaleCessionarioType\RappresentanteFiscale; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class CessionarioCommittente extends Data | ||
{ | ||
public DatiAnagrafici $DatiAnagrafici; | ||
public Sede $Sede; | ||
public StabileOrganizzazione|Optional $StabileOrganizzazione; | ||
public RappresentanteFiscale|Optional $RappresentanteFiscale; | ||
} |
19 changes: 19 additions & 0 deletions
19
src/Models/FatturaPA/CessionarioCommittenteType/CessionarioCommittente.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA\CessionarioCommittenteType; | ||
|
||
use Carbon\Carbon; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\DatiAnagraficiCessionarioType\DatiAnagrafici; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\IndirizzoType\Sede; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\IndirizzoType\StabileOrganizzazione; | ||
use Invoiceninja\Einvoice\Models\FatturaPA\RappresentanteFiscaleCessionarioType\RappresentanteFiscale; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class CessionarioCommittente extends Data | ||
{ | ||
public DatiAnagrafici $DatiAnagrafici; | ||
public Sede $Sede; | ||
public StabileOrganizzazione|Optional $StabileOrganizzazione; | ||
public RappresentanteFiscale|Optional $RappresentanteFiscale; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA; | ||
|
||
use Carbon\Carbon; | ||
use Spatie\LaravelData\Data; | ||
|
||
class CodiceArticolo extends Data | ||
{ | ||
public string $CodiceTipo; | ||
public string $CodiceValore; | ||
} |
19 changes: 19 additions & 0 deletions
19
src/Models/FatturaPA/CodiceArticoloType/CodiceArticolo.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA\CodiceArticoloType; | ||
|
||
use Carbon\Carbon; | ||
use Spatie\LaravelData\Attributes\Validation\Max; | ||
use Spatie\LaravelData\Attributes\Validation\Min; | ||
use Spatie\LaravelData\Attributes\Validation\Regex; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class CodiceArticolo extends Data | ||
{ | ||
#[Max(35)] | ||
#[Min(1)] | ||
#[Regex('(\p{IsBasicLatin}{1,35})')] | ||
public string $CodiceTipo; | ||
public string $CodiceValore; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA; | ||
|
||
use Carbon\Carbon; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class Contatti extends Data | ||
{ | ||
public string|Optional $Telefono; | ||
public string|Optional $Fax; | ||
public string|Optional $Email; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA; | ||
|
||
use Carbon\Carbon; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class ContattiTrasmittente extends Data | ||
{ | ||
public string|Optional $Telefono; | ||
public string|Optional $Email; | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Models/FatturaPA/ContattiTrasmittenteType/ContattiTrasmittente.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA\ContattiTrasmittenteType; | ||
|
||
use Carbon\Carbon; | ||
use Spatie\LaravelData\Attributes\Validation\Max; | ||
use Spatie\LaravelData\Attributes\Validation\Min; | ||
use Spatie\LaravelData\Attributes\Validation\Regex; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class ContattiTrasmittente extends Data | ||
{ | ||
#[Max(12)] | ||
#[Min(5)] | ||
#[Regex('(\p{IsBasicLatin}{5,12})')] | ||
public string|Optional $Telefono; | ||
|
||
#[Regex('.+@.+[.]+.+')] | ||
public string|Optional $Email; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Invoiceninja\Einvoice\Models\FatturaPA\ContattiType; | ||
|
||
use Carbon\Carbon; | ||
use Spatie\LaravelData\Attributes\Validation\Max; | ||
use Spatie\LaravelData\Attributes\Validation\Min; | ||
use Spatie\LaravelData\Attributes\Validation\Regex; | ||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Optional; | ||
|
||
class Contatti extends Data | ||
{ | ||
#[Max(12)] | ||
#[Min(5)] | ||
#[Regex('(\p{IsBasicLatin}{5,12})')] | ||
public string|Optional $Telefono; | ||
|
||
#[Max(12)] | ||
#[Min(5)] | ||
#[Regex('(\p{IsBasicLatin}{5,12})')] | ||
public string|Optional $Fax; | ||
|
||
#[Regex('.+@.+[.]+.+')] | ||
public string|Optional $Email; | ||
} |
Oops, something went wrong.